Skip to content

Commit 652a55a

Browse files
committed
fix: widget doesn't create configuration file
refs: #318
1 parent 0c6def8 commit 652a55a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/plasmoid/package/contents/ui/FullRepresentation.qml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,13 +576,15 @@ ColumnLayout {
576576
}';
577577

578578
settings = Qt.createQmlObject(settingsString, mainLayout, "settingsObject");
579-
settings.location = StandardPaths.locate(StandardPaths.HomeLocation, "/.config/kde-material-you-colors/config.conf", StandardPaths.LocateFile);
579+
settings.location = StandardPaths.writableLocation(StandardPaths.ConfigLocation) + "/kde-material-you-colors/config.conf";
580580
customTextColorsCheck.checked = settings.custom_colors_list == "";
581581
customColorCheck.checked = settings.color == "";
582582
}
583583

584584
function destroySettings() {
585-
settings.destroy();
585+
if (settings) {
586+
settings.destroy();
587+
}
586588
// settings = null
587589
}
588590

0 commit comments

Comments
 (0)