Fix crashing on undefined gtk theme settings (fix #2)

This commit is contained in:
futpib 2019-02-02 18:17:23 +03:00
parent 3b16d532ef
commit 44c987a885

View File

@ -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 = [