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-fallback-icon-theme'],
|
||||
'hicolor',
|
||||
];
|
||||
themeName = gtk.Settings['gtk-theme-name'];
|
||||
].filter(Boolean);
|
||||
themeName = gtk.Settings['gtk-theme-name'] || themeName;
|
||||
}
|
||||
|
||||
const themePaths = [
|
||||
|
|
Loading…
Reference in New Issue
Block a user