Component stack fixes

This commit is contained in:
Mo Bitar
2020-04-16 09:46:15 -05:00
parent 407e3ea0d8
commit c94742d248
7 changed files with 168 additions and 100 deletions

View File

@@ -165,7 +165,6 @@ class FooterViewCtrl extends PureViewCtrl {
this.reloadPasscodeStatus();
}
/** @override */
onAppEvent(eventName: ApplicationEvent) {
if (eventName === ApplicationEvent.KeyStatusChanged) {
@@ -219,11 +218,8 @@ class FooterViewCtrl extends PureViewCtrl {
}).sort((a, b) => {
return a.name.toLowerCase() < b.name.toLowerCase() ? -1 : 1;
});
const differ = filteredThemes.length !== this.themesWithIcons.length;
this.themesWithIcons = filteredThemes;
if (differ) {
this.reloadDockShortcuts();
}
this.reloadDockShortcuts();
}
);
}
@@ -354,7 +350,6 @@ class FooterViewCtrl extends PureViewCtrl {
icon: icon
} as DockShortcut);
}
this.dockShortcuts = shortcuts.sort((a, b) => {
/** Circles first, then images */
const aType = a.icon.type;