fix: do not throw on invalid themes
This commit is contained in:
@@ -490,6 +490,9 @@ class FooterViewCtrl extends PureViewCtrl<{}, {
|
|||||||
reloadDockShortcuts() {
|
reloadDockShortcuts() {
|
||||||
const shortcuts = [];
|
const shortcuts = [];
|
||||||
for (const theme of this.themesWithIcons) {
|
for (const theme of this.themesWithIcons) {
|
||||||
|
if (!theme.package_info) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const name = theme.package_info.name;
|
const name = theme.package_info.name;
|
||||||
const icon = theme.package_info.dock_icon;
|
const icon = theme.package_info.dock_icon;
|
||||||
if (!icon) {
|
if (!icon) {
|
||||||
|
|||||||
Reference in New Issue
Block a user