diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-13 14:41:14 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-13 14:41:14 -0500 |
| commit | 1da9c68be8f336a671f9514cf5feaaf5998da981 (patch) | |
| tree | 411bc8f03ff86a2b1fadb800708e4a63982cfe5d /modules/controlcenter/launcher/LauncherPane.qml | |
| parent | cleanup: trailing whitespace (diff) | |
| download | caelestia-shell-1da9c68be8f336a671f9514cf5feaaf5998da981.tar.gz caelestia-shell-1da9c68be8f336a671f9514cf5feaaf5998da981.tar.bz2 caelestia-shell-1da9c68be8f336a671f9514cf5feaaf5998da981.zip | |
cleanup: trailing whitespace removeal (entire project)
Diffstat (limited to 'modules/controlcenter/launcher/LauncherPane.qml')
| -rw-r--r-- | modules/controlcenter/launcher/LauncherPane.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/controlcenter/launcher/LauncherPane.qml b/modules/controlcenter/launcher/LauncherPane.qml index 9b2570a..dd00877 100644 --- a/modules/controlcenter/launcher/LauncherPane.qml +++ b/modules/controlcenter/launcher/LauncherPane.qml @@ -53,7 +53,7 @@ RowLayout { try { const config = JSON.parse(configFile.text()); const appId = root.selectedApp.id || root.selectedApp.entry?.id; - + if (config.launcher && config.launcher.hiddenApps) { root.hideFromLauncherChecked = config.launcher.hiddenApps.includes(appId); } else { @@ -72,12 +72,12 @@ RowLayout { try { const config = JSON.parse(configFile.text()); const appId = root.selectedApp.id || root.selectedApp.entry?.id; - + if (!config.launcher) config.launcher = {}; if (!config.launcher.hiddenApps) config.launcher.hiddenApps = []; - + const hiddenApps = config.launcher.hiddenApps; - + if (isHidden) { // Add to hiddenApps if not already there if (!hiddenApps.includes(appId)) { @@ -90,7 +90,7 @@ RowLayout { hiddenApps.splice(index, 1); } } - + const jsonString = JSON.stringify(config, null, 4); configFile.setText(jsonString); } catch (e) { |