Fix crashing on undefined gtk theme settings (fix #2)
This commit is contained in:
parent
3b16d532ef
commit
44c987a885
|
@ -26,8 +26,8 @@ if (gtk) {
|
||||||
gtk.Settings['gtk-icon-theme-name'],
|
gtk.Settings['gtk-icon-theme-name'],
|
||||||
gtk.Settings['gtk-fallback-icon-theme'],
|
gtk.Settings['gtk-fallback-icon-theme'],
|
||||||
'hicolor',
|
'hicolor',
|
||||||
];
|
].filter(Boolean);
|
||||||
themeName = gtk.Settings['gtk-theme-name'];
|
themeName = gtk.Settings['gtk-theme-name'] || themeName;
|
||||||
}
|
}
|
||||||
|
|
||||||
const themePaths = [
|
const themePaths = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user