mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
fix: convert to string first before using includes
This commit is contained in:
+2
-2
@@ -20,8 +20,8 @@ Singleton {
|
||||
onFileChanged: reload()
|
||||
onAdapterUpdated: writeAdapter()
|
||||
onLoadFailed: function(error) {
|
||||
if (error.includes("No such file")) {
|
||||
themeData = {}
|
||||
if (error.toString().includes("No such file") || error === 2) {
|
||||
// File doesn't exist, create it with default values
|
||||
writeAdapter()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user