From 42b9e57eae90e07f6400ec3f5b812d532911561b Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 12 Apr 2026 03:46:37 +1000 Subject: [PATCH] fix: use singleton for conf writes --- .../appearance/AppearancePane.qml | 58 ++++++++-------- .../controlcenter/dashboard/DashboardPane.qml | 30 ++++----- .../controlcenter/launcher/LauncherPane.qml | 6 +- modules/controlcenter/launcher/Settings.qml | 18 ++--- .../controlcenter/network/NetworkSettings.qml | 2 +- modules/controlcenter/network/VpnDetails.qml | 6 +- modules/controlcenter/network/VpnList.qml | 14 ++-- modules/controlcenter/network/VpnSettings.qml | 12 ++-- .../notifications/NotificationsPane.qml | 34 +++++----- modules/controlcenter/taskbar/TaskbarPane.qml | 66 +++++++++---------- services/LyricsService.qml | 4 +- 11 files changed, 125 insertions(+), 125 deletions(-) diff --git a/modules/controlcenter/appearance/AppearancePane.qml b/modules/controlcenter/appearance/AppearancePane.qml index 7111d83f..6ede9bb3 100644 --- a/modules/controlcenter/appearance/AppearancePane.qml +++ b/modules/controlcenter/appearance/AppearancePane.qml @@ -55,42 +55,42 @@ Item { property real visualiserSpacing: Config.background.visualiser.spacing ?? 1 function saveConfig() { - Config.appearance.anim.durations.scale = root.animDurationsScale; + GlobalConfig.appearance.anim.durations.scale = root.animDurationsScale; - Config.appearance.font.family.material = root.fontFamilyMaterial; - Config.appearance.font.family.mono = root.fontFamilyMono; - Config.appearance.font.family.sans = root.fontFamilySans; - Config.appearance.font.size.scale = root.fontSizeScale; + GlobalConfig.appearance.font.family.material = root.fontFamilyMaterial; + GlobalConfig.appearance.font.family.mono = root.fontFamilyMono; + GlobalConfig.appearance.font.family.sans = root.fontFamilySans; + GlobalConfig.appearance.font.size.scale = root.fontSizeScale; - Config.appearance.padding.scale = root.paddingScale; - Config.appearance.rounding.scale = root.roundingScale; - Config.appearance.spacing.scale = root.spacingScale; + GlobalConfig.appearance.padding.scale = root.paddingScale; + GlobalConfig.appearance.rounding.scale = root.roundingScale; + GlobalConfig.appearance.spacing.scale = root.spacingScale; - Config.appearance.transparency.enabled = root.transparencyEnabled; - Config.appearance.transparency.base = root.transparencyBase; - Config.appearance.transparency.layers = root.transparencyLayers; + GlobalConfig.appearance.transparency.enabled = root.transparencyEnabled; + GlobalConfig.appearance.transparency.base = root.transparencyBase; + GlobalConfig.appearance.transparency.layers = root.transparencyLayers; - Config.background.desktopClock.enabled = root.desktopClockEnabled; - Config.background.enabled = root.backgroundEnabled; - Config.background.desktopClock.scale = root.desktopClockScale; - Config.background.desktopClock.position = root.desktopClockPosition; - Config.background.desktopClock.shadow.enabled = root.desktopClockShadowEnabled; - Config.background.desktopClock.shadow.opacity = root.desktopClockShadowOpacity; - Config.background.desktopClock.shadow.blur = root.desktopClockShadowBlur; - Config.background.desktopClock.background.enabled = root.desktopClockBackgroundEnabled; - Config.background.desktopClock.background.opacity = root.desktopClockBackgroundOpacity; - Config.background.desktopClock.background.blur = root.desktopClockBackgroundBlur; - Config.background.desktopClock.invertColors = root.desktopClockInvertColors; + GlobalConfig.background.desktopClock.enabled = root.desktopClockEnabled; + GlobalConfig.background.enabled = root.backgroundEnabled; + GlobalConfig.background.desktopClock.scale = root.desktopClockScale; + GlobalConfig.background.desktopClock.position = root.desktopClockPosition; + GlobalConfig.background.desktopClock.shadow.enabled = root.desktopClockShadowEnabled; + GlobalConfig.background.desktopClock.shadow.opacity = root.desktopClockShadowOpacity; + GlobalConfig.background.desktopClock.shadow.blur = root.desktopClockShadowBlur; + GlobalConfig.background.desktopClock.background.enabled = root.desktopClockBackgroundEnabled; + GlobalConfig.background.desktopClock.background.opacity = root.desktopClockBackgroundOpacity; + GlobalConfig.background.desktopClock.background.blur = root.desktopClockBackgroundBlur; + GlobalConfig.background.desktopClock.invertColors = root.desktopClockInvertColors; - Config.background.wallpaperEnabled = root.wallpaperEnabled; + GlobalConfig.background.wallpaperEnabled = root.wallpaperEnabled; - Config.background.visualiser.enabled = root.visualiserEnabled; - Config.background.visualiser.autoHide = root.visualiserAutoHide; - Config.background.visualiser.rounding = root.visualiserRounding; - Config.background.visualiser.spacing = root.visualiserSpacing; + GlobalConfig.background.visualiser.enabled = root.visualiserEnabled; + GlobalConfig.background.visualiser.autoHide = root.visualiserAutoHide; + GlobalConfig.background.visualiser.rounding = root.visualiserRounding; + GlobalConfig.background.visualiser.spacing = root.visualiserSpacing; - Config.border.rounding = root.borderRounding; - Config.border.thickness = root.borderThickness; + GlobalConfig.border.rounding = root.borderRounding; + GlobalConfig.border.thickness = root.borderThickness; } anchors.fill: parent diff --git a/modules/controlcenter/dashboard/DashboardPane.qml b/modules/controlcenter/dashboard/DashboardPane.qml index eed077c9..46e33ebc 100644 --- a/modules/controlcenter/dashboard/DashboardPane.qml +++ b/modules/controlcenter/dashboard/DashboardPane.qml @@ -41,21 +41,21 @@ Item { property bool showNetwork: Config.dashboard.performance.showNetwork ?? true function saveConfig() { - Config.dashboard.enabled = root.enabled; - Config.dashboard.showOnHover = root.showOnHover; - Config.dashboard.mediaUpdateInterval = root.mediaUpdateInterval; - Config.dashboard.resourceUpdateInterval = root.resourceUpdateInterval; - Config.dashboard.dragThreshold = root.dragThreshold; - Config.dashboard.showDashboard = root.showDashboard; - Config.dashboard.showMedia = root.showMedia; - Config.dashboard.showPerformance = root.showPerformance; - Config.dashboard.showWeather = root.showWeather; - Config.dashboard.performance.showBattery = root.showBattery; - Config.dashboard.performance.showGpu = root.showGpu; - Config.dashboard.performance.showCpu = root.showCpu; - Config.dashboard.performance.showMemory = root.showMemory; - Config.dashboard.performance.showStorage = root.showStorage; - Config.dashboard.performance.showNetwork = root.showNetwork; + GlobalConfig.dashboard.enabled = root.enabled; + GlobalConfig.dashboard.showOnHover = root.showOnHover; + GlobalConfig.dashboard.mediaUpdateInterval = root.mediaUpdateInterval; + GlobalConfig.dashboard.resourceUpdateInterval = root.resourceUpdateInterval; + GlobalConfig.dashboard.dragThreshold = root.dragThreshold; + GlobalConfig.dashboard.showDashboard = root.showDashboard; + GlobalConfig.dashboard.showMedia = root.showMedia; + GlobalConfig.dashboard.showPerformance = root.showPerformance; + GlobalConfig.dashboard.showWeather = root.showWeather; + GlobalConfig.dashboard.performance.showBattery = root.showBattery; + GlobalConfig.dashboard.performance.showGpu = root.showGpu; + GlobalConfig.dashboard.performance.showCpu = root.showCpu; + GlobalConfig.dashboard.performance.showMemory = root.showMemory; + GlobalConfig.dashboard.performance.showStorage = root.showStorage; + GlobalConfig.dashboard.performance.showNetwork = root.showNetwork; // Note: sizes properties are readonly and cannot be modified } diff --git a/modules/controlcenter/launcher/LauncherPane.qml b/modules/controlcenter/launcher/LauncherPane.qml index c29243c2..e5353fba 100644 --- a/modules/controlcenter/launcher/LauncherPane.qml +++ b/modules/controlcenter/launcher/LauncherPane.qml @@ -61,7 +61,7 @@ Item { } } - Config.launcher.hiddenApps = hiddenApps; + GlobalConfig.launcher.hiddenApps = hiddenApps; } function filterApps(search: string): list { @@ -624,7 +624,7 @@ Item { favouriteApps.splice(index, 1); } } - Config.launcher.favouriteApps = favouriteApps; + GlobalConfig.launcher.favouriteApps = favouriteApps; } } } @@ -656,7 +656,7 @@ Item { hiddenApps.splice(index, 1); } } - Config.launcher.hiddenApps = hiddenApps; + GlobalConfig.launcher.hiddenApps = hiddenApps; } } } diff --git a/modules/controlcenter/launcher/Settings.qml b/modules/controlcenter/launcher/Settings.qml index ce570737..df25a827 100644 --- a/modules/controlcenter/launcher/Settings.qml +++ b/modules/controlcenter/launcher/Settings.qml @@ -33,7 +33,7 @@ ColumnLayout { label: qsTr("Enabled") checked: Config.launcher.enabled toggle.onToggled: { - Config.launcher.enabled = checked; + GlobalConfig.launcher.enabled = checked; } } @@ -41,7 +41,7 @@ ColumnLayout { label: qsTr("Show on hover") checked: Config.launcher.showOnHover toggle.onToggled: { - Config.launcher.showOnHover = checked; + GlobalConfig.launcher.showOnHover = checked; } } @@ -49,7 +49,7 @@ ColumnLayout { label: qsTr("Vim keybinds") checked: Config.launcher.vimKeybinds toggle.onToggled: { - Config.launcher.vimKeybinds = checked; + GlobalConfig.launcher.vimKeybinds = checked; } } @@ -57,7 +57,7 @@ ColumnLayout { label: qsTr("Enable dangerous actions") checked: Config.launcher.enableDangerousActions toggle.onToggled: { - Config.launcher.enableDangerousActions = checked; + GlobalConfig.launcher.enableDangerousActions = checked; } } } @@ -121,7 +121,7 @@ ColumnLayout { label: qsTr("Apps") checked: Config.launcher.useFuzzy.apps toggle.onToggled: { - Config.launcher.useFuzzy.apps = checked; + GlobalConfig.launcher.useFuzzy.apps = checked; } } @@ -129,7 +129,7 @@ ColumnLayout { label: qsTr("Actions") checked: Config.launcher.useFuzzy.actions toggle.onToggled: { - Config.launcher.useFuzzy.actions = checked; + GlobalConfig.launcher.useFuzzy.actions = checked; } } @@ -137,7 +137,7 @@ ColumnLayout { label: qsTr("Schemes") checked: Config.launcher.useFuzzy.schemes toggle.onToggled: { - Config.launcher.useFuzzy.schemes = checked; + GlobalConfig.launcher.useFuzzy.schemes = checked; } } @@ -145,7 +145,7 @@ ColumnLayout { label: qsTr("Variants") checked: Config.launcher.useFuzzy.variants toggle.onToggled: { - Config.launcher.useFuzzy.variants = checked; + GlobalConfig.launcher.useFuzzy.variants = checked; } } @@ -153,7 +153,7 @@ ColumnLayout { label: qsTr("Wallpapers") checked: Config.launcher.useFuzzy.wallpapers toggle.onToggled: { - Config.launcher.useFuzzy.wallpapers = checked; + GlobalConfig.launcher.useFuzzy.wallpapers = checked; } } } diff --git a/modules/controlcenter/network/NetworkSettings.qml b/modules/controlcenter/network/NetworkSettings.qml index 3e720ea4..5ed755fe 100644 --- a/modules/controlcenter/network/NetworkSettings.qml +++ b/modules/controlcenter/network/NetworkSettings.qml @@ -75,7 +75,7 @@ ColumnLayout { label: qsTr("VPN enabled") checked: Config.utilities.vpn.enabled toggle.onToggled: { - Config.utilities.vpn.enabled = checked; + GlobalConfig.utilities.vpn.enabled = checked; } } diff --git a/modules/controlcenter/network/VpnDetails.qml b/modules/controlcenter/network/VpnDetails.qml index fcdd9a8a..f0197f9c 100644 --- a/modules/controlcenter/network/VpnDetails.qml +++ b/modules/controlcenter/network/VpnDetails.qml @@ -85,7 +85,7 @@ DeviceDetails { } } - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; } } @@ -139,7 +139,7 @@ DeviceDetails { providers.push(Config.utilities.vpn.provider[i]); } } - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; root.session.vpn.active = null; } } @@ -537,7 +537,7 @@ DeviceDetails { } } - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; editVpnDialog.closeWithAnimation(); } } diff --git a/modules/controlcenter/network/VpnList.qml b/modules/controlcenter/network/VpnList.qml index 957ce87e..dd63300d 100644 --- a/modules/controlcenter/network/VpnList.qml +++ b/modules/controlcenter/network/VpnList.qml @@ -47,7 +47,7 @@ ColumnLayout { providers.push(p); } } - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; Qt.callLater(function () { VPN.toggle(); @@ -242,7 +242,7 @@ ColumnLayout { providers.push(p); } } - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; Qt.callLater(function () { VPN.toggle(); @@ -291,7 +291,7 @@ ColumnLayout { providers.push(reconstructed); } } - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; } } @@ -492,7 +492,7 @@ ColumnLayout { displayName: "NetBird", interface: "wt0" }); - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; vpnDialog.closeWithAnimation(); } } @@ -512,7 +512,7 @@ ColumnLayout { displayName: "Tailscale", interface: "tailscale0" }); - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; vpnDialog.closeWithAnimation(); } } @@ -532,7 +532,7 @@ ColumnLayout { displayName: "Cloudflare WARP", interface: "CloudflareWARP" }); - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; vpnDialog.closeWithAnimation(); } } @@ -799,7 +799,7 @@ ColumnLayout { providers.push(newProvider); } - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; vpnDialog.closeWithAnimation(); } } diff --git a/modules/controlcenter/network/VpnSettings.qml b/modules/controlcenter/network/VpnSettings.qml index 30b5403b..27c1cc8e 100644 --- a/modules/controlcenter/network/VpnSettings.qml +++ b/modules/controlcenter/network/VpnSettings.qml @@ -36,7 +36,7 @@ ColumnLayout { label: qsTr("VPN enabled") checked: Config.utilities.vpn.enabled toggle.onToggled: { - Config.utilities.vpn.enabled = checked; + GlobalConfig.utilities.vpn.enabled = checked; } } } @@ -147,7 +147,7 @@ ColumnLayout { providers.unshift(provider); } - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; } } @@ -173,7 +173,7 @@ ColumnLayout { providers.push(reconstructed); } } - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; } } } @@ -216,7 +216,7 @@ ColumnLayout { displayName: "NetBird", interface: "wt0" }); - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; } } @@ -233,7 +233,7 @@ ColumnLayout { displayName: "Tailscale", interface: "tailscale0" }); - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; } } @@ -250,7 +250,7 @@ ColumnLayout { displayName: "Cloudflare WARP", interface: "CloudflareWARP" }); - Config.utilities.vpn.provider = providers; + GlobalConfig.utilities.vpn.provider = providers; } } } diff --git a/modules/controlcenter/notifications/NotificationsPane.qml b/modules/controlcenter/notifications/NotificationsPane.qml index a522dca4..ea75c2a6 100644 --- a/modules/controlcenter/notifications/NotificationsPane.qml +++ b/modules/controlcenter/notifications/NotificationsPane.qml @@ -38,24 +38,24 @@ Item { property bool nowPlaying: Config.utilities.toasts.nowPlaying ?? false function saveConfig(): void { - Config.notifs.expire = root.notificationsExpire; - Config.notifs.fullscreen = root.notificationsFullscreen; - Config.notifs.openExpanded = root.notificationsOpenExpanded; - Config.notifs.defaultExpireTimeout = root.notificationsDefaultExpireTimeout; - Config.notifs.groupPreviewNum = root.notificationsGroupPreviewNum; + GlobalConfig.notifs.expire = root.notificationsExpire; + GlobalConfig.notifs.fullscreen = root.notificationsFullscreen; + GlobalConfig.notifs.openExpanded = root.notificationsOpenExpanded; + GlobalConfig.notifs.defaultExpireTimeout = root.notificationsDefaultExpireTimeout; + GlobalConfig.notifs.groupPreviewNum = root.notificationsGroupPreviewNum; - Config.utilities.maxToasts = root.maxToasts; - Config.utilities.toasts.fullscreen = root.toastsFullscreen; - Config.utilities.toasts.chargingChanged = root.chargingChanged; - Config.utilities.toasts.gameModeChanged = root.gameModeChanged; - Config.utilities.toasts.dndChanged = root.dndChanged; - Config.utilities.toasts.audioOutputChanged = root.audioOutputChanged; - Config.utilities.toasts.audioInputChanged = root.audioInputChanged; - Config.utilities.toasts.capsLockChanged = root.capsLockChanged; - Config.utilities.toasts.numLockChanged = root.numLockChanged; - Config.utilities.toasts.kbLayoutChanged = root.kbLayoutChanged; - Config.utilities.toasts.vpnChanged = root.vpnChanged; - Config.utilities.toasts.nowPlaying = root.nowPlaying; + GlobalConfig.utilities.maxToasts = root.maxToasts; + GlobalConfig.utilities.toasts.fullscreen = root.toastsFullscreen; + GlobalConfig.utilities.toasts.chargingChanged = root.chargingChanged; + GlobalConfig.utilities.toasts.gameModeChanged = root.gameModeChanged; + GlobalConfig.utilities.toasts.dndChanged = root.dndChanged; + GlobalConfig.utilities.toasts.audioOutputChanged = root.audioOutputChanged; + GlobalConfig.utilities.toasts.audioInputChanged = root.audioInputChanged; + GlobalConfig.utilities.toasts.capsLockChanged = root.capsLockChanged; + GlobalConfig.utilities.toasts.numLockChanged = root.numLockChanged; + GlobalConfig.utilities.toasts.kbLayoutChanged = root.kbLayoutChanged; + GlobalConfig.utilities.toasts.vpnChanged = root.vpnChanged; + GlobalConfig.utilities.toasts.nowPlaying = root.nowPlaying; } anchors.fill: parent diff --git a/modules/controlcenter/taskbar/TaskbarPane.qml b/modules/controlcenter/taskbar/TaskbarPane.qml index 4c3ff8af..75d70bff 100644 --- a/modules/controlcenter/taskbar/TaskbarPane.qml +++ b/modules/controlcenter/taskbar/TaskbarPane.qml @@ -54,38 +54,38 @@ Item { property list excludedScreens: Config.bar.excludedScreens ?? [] function saveConfig(entryIndex, entryEnabled) { - Config.bar.activeWindow.compact = root.activeWindowCompact; - Config.bar.activeWindow.inverted = root.activeWindowInverted; - Config.bar.clock.background = root.clockBackground; - Config.bar.clock.showDate = root.clockShowDate; - Config.bar.clock.showIcon = root.clockShowIcon; - Config.bar.persistent = root.persistent; - Config.bar.showOnHover = root.showOnHover; - Config.bar.dragThreshold = root.dragThreshold; - Config.bar.status.showAudio = root.showAudio; - Config.bar.status.showMicrophone = root.showMicrophone; - Config.bar.status.showKbLayout = root.showKbLayout; - Config.bar.status.showNetwork = root.showNetwork; - Config.bar.status.showWifi = root.showWifi; - Config.bar.status.showBluetooth = root.showBluetooth; - Config.bar.status.showBattery = root.showBattery; - Config.bar.status.showLockStatus = root.showLockStatus; - Config.bar.tray.background = root.trayBackground; - Config.bar.tray.compact = root.trayCompact; - Config.bar.tray.recolour = root.trayRecolour; - Config.bar.workspaces.shown = root.workspacesShown; - Config.bar.workspaces.activeIndicator = root.workspacesActiveIndicator; - Config.bar.workspaces.occupiedBg = root.workspacesOccupiedBg; - Config.bar.workspaces.showWindows = root.workspacesShowWindows; - Config.bar.workspaces.maxWindowIcons = root.workspacesMaxWindowIcons; - Config.bar.workspaces.perMonitorWorkspaces = root.workspacesPerMonitor; - Config.bar.scrollActions.workspaces = root.scrollWorkspaces; - Config.bar.scrollActions.volume = root.scrollVolume; - Config.bar.scrollActions.brightness = root.scrollBrightness; - Config.bar.popouts.activeWindow = root.popoutActiveWindow; - Config.bar.popouts.tray = root.popoutTray; - Config.bar.popouts.statusIcons = root.popoutStatusIcons; - Config.bar.excludedScreens = root.excludedScreens; + GlobalConfig.bar.activeWindow.compact = root.activeWindowCompact; + GlobalConfig.bar.activeWindow.inverted = root.activeWindowInverted; + GlobalConfig.bar.clock.background = root.clockBackground; + GlobalConfig.bar.clock.showDate = root.clockShowDate; + GlobalConfig.bar.clock.showIcon = root.clockShowIcon; + GlobalConfig.bar.persistent = root.persistent; + GlobalConfig.bar.showOnHover = root.showOnHover; + GlobalConfig.bar.dragThreshold = root.dragThreshold; + GlobalConfig.bar.status.showAudio = root.showAudio; + GlobalConfig.bar.status.showMicrophone = root.showMicrophone; + GlobalConfig.bar.status.showKbLayout = root.showKbLayout; + GlobalConfig.bar.status.showNetwork = root.showNetwork; + GlobalConfig.bar.status.showWifi = root.showWifi; + GlobalConfig.bar.status.showBluetooth = root.showBluetooth; + GlobalConfig.bar.status.showBattery = root.showBattery; + GlobalConfig.bar.status.showLockStatus = root.showLockStatus; + GlobalConfig.bar.tray.background = root.trayBackground; + GlobalConfig.bar.tray.compact = root.trayCompact; + GlobalConfig.bar.tray.recolour = root.trayRecolour; + GlobalConfig.bar.workspaces.shown = root.workspacesShown; + GlobalConfig.bar.workspaces.activeIndicator = root.workspacesActiveIndicator; + GlobalConfig.bar.workspaces.occupiedBg = root.workspacesOccupiedBg; + GlobalConfig.bar.workspaces.showWindows = root.workspacesShowWindows; + GlobalConfig.bar.workspaces.maxWindowIcons = root.workspacesMaxWindowIcons; + GlobalConfig.bar.workspaces.perMonitorWorkspaces = root.workspacesPerMonitor; + GlobalConfig.bar.scrollActions.workspaces = root.scrollWorkspaces; + GlobalConfig.bar.scrollActions.volume = root.scrollVolume; + GlobalConfig.bar.scrollActions.brightness = root.scrollBrightness; + GlobalConfig.bar.popouts.activeWindow = root.popoutActiveWindow; + GlobalConfig.bar.popouts.tray = root.popoutTray; + GlobalConfig.bar.popouts.statusIcons = root.popoutStatusIcons; + GlobalConfig.bar.excludedScreens = root.excludedScreens; const entries = []; for (let i = 0; i < entriesModel.count; i++) { @@ -99,7 +99,7 @@ Item { enabled: enabled }); } - Config.bar.entries = entries; + GlobalConfig.bar.entries = entries; } anchors.fill: parent diff --git a/services/LyricsService.qml b/services/LyricsService.qml index dc5f600f..04fc64fb 100644 --- a/services/LyricsService.qml +++ b/services/LyricsService.qml @@ -68,7 +68,7 @@ Singleton { } function toggleVisibility() { - Config.services.showLyrics = !Config.services.showLyrics; + GlobalConfig.services.showLyrics = !Config.services.showLyrics; } function loadLyrics() { @@ -272,7 +272,7 @@ Singleton { onPreferredBackendChanged: { if (Config.services.lyricsBackend !== preferredBackend) { - Config.services.lyricsBackend = preferredBackend; + GlobalConfig.services.lyricsBackend = preferredBackend; } }