Use let kconfig register the config class
This commit is contained in:
@@ -15,10 +15,10 @@ FormCard.FormComboBoxDelegate {
|
||||
textRole: "display"
|
||||
valueRole: "display"
|
||||
model: ColorSchemer.model
|
||||
Component.onCompleted: currentIndex = ColorSchemer.indexForScheme(Config.colorScheme)
|
||||
Component.onCompleted: currentIndex = ColorSchemer.indexForScheme(NeoChatConfig.colorScheme)
|
||||
onCurrentValueChanged: {
|
||||
ColorSchemer.apply(currentIndex);
|
||||
Config.colorScheme = ColorSchemer.nameForIndex(currentIndex);
|
||||
Config.save();
|
||||
NeoChatConfig.colorScheme = ColorSchemer.nameForIndex(currentIndex);
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user