31 lines
898 B
QML
31 lines
898 B
QML
import QtQuick
|
|
import Quickshell
|
|
import Caelestia
|
|
import Caelestia.Config
|
|
|
|
Scope {
|
|
Connections {
|
|
function onLoaded(): void {
|
|
if (GlobalConfig.utilities.toasts.configLoaded)
|
|
Toaster.toast(qsTr("Config loaded"), qsTr("Config loaded successfully!"), "rule_settings");
|
|
}
|
|
|
|
function onLoadFailed(error: string): void {
|
|
Toaster.toast(qsTr("Failed to parse config"), error, "settings_alert", Toast.Warning);
|
|
}
|
|
|
|
function onSaveFailed(error: string): void {
|
|
Toaster.toast(qsTr("Failed to save config"), error, "settings_alert", Toast.Error);
|
|
}
|
|
|
|
target: GlobalConfig
|
|
}
|
|
|
|
Connections {
|
|
function onLoadFailed(error: string): void {
|
|
Toaster.toast(qsTr("Failed to parse token config"), error, "settings_alert", Toast.Warning);
|
|
}
|
|
|
|
target: TokenConfig
|
|
}
|
|
}
|