From b2d46ab75977def39e0a0c03864e9bb99534fa58 Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Thu, 18 Sep 2025 17:34:55 -0400 Subject: [PATCH] Settings: cleanup since we moved the wallpaper selector out. --- Modules/SettingsPanel/SettingsPanel.qml | 40 ++++++++++--------------- 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/Modules/SettingsPanel/SettingsPanel.qml b/Modules/SettingsPanel/SettingsPanel.qml index 678a8556..d04aea82 100644 --- a/Modules/SettingsPanel/SettingsPanel.qml +++ b/Modules/SettingsPanel/SettingsPanel.qml @@ -46,13 +46,6 @@ NPanel { property var tabsModel: [] property var activeScrollView: null - Connections { - target: Settings.data.wallpaper - function onEnabledChanged() { - updateTabsModel() - } - } - Component.onCompleted: { updateTabsModel() } @@ -172,26 +165,23 @@ NPanel { "label": "Wallpaper", "icon": "settings-wallpaper", "source": wallpaperTab + }, { + "id": SettingsPanel.Tab.ScreenRecorder, + "label": "Screen Recorder", + "icon": "settings-screen-recorder", + "source": screenRecorderTab + }, { + "id": SettingsPanel.Tab.Hooks, + "label": "Hooks", + "icon": "settings-hooks", + "source": hooksTab + }, { + "id": SettingsPanel.Tab.About, + "label": "About", + "icon": "settings-about", + "source": aboutTab }] - // Wallpaper selector moved to its own panel - newTabs.push({ - "id": SettingsPanel.Tab.ScreenRecorder, - "label": "Screen Recorder", - "icon": "settings-screen-recorder", - "source": screenRecorderTab - }, { - "id": SettingsPanel.Tab.Hooks, - "label": "Hooks", - "icon": "settings-hooks", - "source": hooksTab - }, { - "id": SettingsPanel.Tab.About, - "label": "About", - "icon": "settings-about", - "source": aboutTab - }) - root.tabsModel = newTabs // Assign the generated list to the model } // When the panel opens, choose the appropriate tab