feat: Added "Whats New" indicator to Preferences button (#2107)

This commit is contained in:
Aman Harwara
2022-12-17 00:35:25 +05:30
committed by GitHub
parent 51aed0a518
commit f559442a67
4 changed files with 46 additions and 7 deletions

View File

@@ -339,8 +339,11 @@ class Footer extends AbstractComponent<Props, State> {
this.viewControllerManager.quickSettingsMenuController.closeQuickSettingsMenu()
}
openPreferences = () => {
openPreferences = (openWhatsNew: boolean) => {
this.clickOutsideQuickSettingsMenu()
if (openWhatsNew) {
this.viewControllerManager.preferencesController.setCurrentPane('whats-new')
}
this.viewControllerManager.preferencesController.openPreferences()
}