refactor: remove setting

This commit is contained in:
DuckySoLucky
2025-10-10 21:34:37 +02:00
parent f0c44734bc
commit b22c2e7d4d
5 changed files with 3 additions and 16 deletions
-4
View File
@@ -354,10 +354,6 @@
"label": "Use App2Unit to launch applications",
"description": "Uses an alternative launch method to better manage app processes and prevent issues."
},
"ignore-initial-mouse": {
"label": "Ignore initial mouse position",
"description": "When enabled, the launcher always defaults to the first item, ignoring where your mouse cursor is positioned. Selection only changes when you move the mouse."
},
"terminal-command": {
"label": "Terminal command",
"description": "Command to launch a terminal. E.g., 'kitty -e' or 'gnome-terminal --'."
+1 -2
View File
@@ -104,8 +104,7 @@
"pinnedExecs": [],
"useApp2Unit": false,
"sortByMostUsed": true,
"terminalCommand": "xterm -e",
"ignoreInitialMousePosition": false
"terminalCommand": "xterm -e"
},
"controlCenter": {
"position": "close_to_bar_button",
-1
View File
@@ -233,7 +233,6 @@ Singleton {
property bool useApp2Unit: false
property bool sortByMostUsed: true
property string terminalCommand: "xterm -e"
property bool ignoreInitialMousePosition: true
}
// control center
+2 -2
View File
@@ -95,7 +95,7 @@ NPanel {
// Lifecycle
onOpened: {
resultsReady = false
ignoreMouseHover = Settings.data.appLauncher.ignoreInitialMousePosition // Use setting value
ignoreMouseHover = true
// Notify plugins
for (let plugin of plugins) {
@@ -112,7 +112,7 @@ NPanel {
onClosed: {
// Reset search text
searchText = ""
ignoreMouseHover = Settings.data.appLauncher.ignoreInitialMousePosition // Use setting value
ignoreMouseHover = true
// Notify plugins
for (let plugin of plugins) {
-7
View File
@@ -99,13 +99,6 @@ ColumnLayout {
onToggled: checked => Settings.data.appLauncher.useApp2Unit = checked
}
NToggle {
label: I18n.tr("settings.launcher.settings.ignore-initial-mouse.label")
description: I18n.tr("settings.launcher.settings.ignore-initial-mouse.description")
checked: Settings.data.appLauncher.ignoreInitialMousePosition
onToggled: checked => Settings.data.appLauncher.ignoreInitialMousePosition = checked
}
NTextInput {
label: I18n.tr("settings.launcher.settings.terminal-command.label")
description: I18n.tr("settings.launcher.settings.terminal-command.description")