summaryrefslogtreecommitdiff
path: root/modules/controlcenter/launcher/LauncherPane.qml
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-13 14:41:14 -0500
committerATMDA <atdma2600@gmail.com>2025-11-13 14:41:14 -0500
commit1da9c68be8f336a671f9514cf5feaaf5998da981 (patch)
tree411bc8f03ff86a2b1fadb800708e4a63982cfe5d /modules/controlcenter/launcher/LauncherPane.qml
parentcleanup: trailing whitespace (diff)
downloadcaelestia-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.qml10
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) {