Fix Matugen, NPanel overlay and probably SWWW
This commit is contained in:
parent
dd471581cd
commit
867444a29c
4 changed files with 22 additions and 7 deletions
|
|
@ -97,8 +97,14 @@ Singleton {
|
|||
id: customColorsFile
|
||||
path: Settings.configDir + "colors.json"
|
||||
watchChanges: true
|
||||
onFileChanged: reload()
|
||||
onAdapterUpdated: writeAdapter()
|
||||
onFileChanged: {
|
||||
console.log("[Colors] reloading colors file from disk")
|
||||
reload()
|
||||
}
|
||||
onAdapterUpdated: {
|
||||
console.log("[Colors] writing colors to disk, primary color:", mPrimary)
|
||||
writeAdapter()
|
||||
}
|
||||
onLoadFailed: function (error) {
|
||||
if (error.toString().includes("No such file") || error === 2) {
|
||||
// File doesn't exist, create it with default values
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue