N°3649 - Activity panel: Add user pref. to define whether the entry form should be opened by default

This commit is contained in:
Molkobain
2021-03-01 23:54:21 +01:00
parent e3015a284b
commit 3b40728701
9 changed files with 76 additions and 20 deletions

View File

@@ -667,8 +667,21 @@ class ActivityPanel extends UIBlock
}
/**
* @uses $bHasStates
* @return bool True if the entry form shouldbe opened by default, false otherwise. Based on the user pref. or false by default.
* @throws \CoreException
* @throws \CoreUnexpectedValue
* @throws \MySQLException
*/
public function IsEntryFormOpened(): bool
{
$bDefault = false;
return appUserPreferences::GetPref('activity_panel.is_entry_form_opened', $bDefault);
}
/**
* @return bool
* @uses $bHasStates
*/
public function HasStates(): bool
{