mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
refactor: remove setting
This commit is contained in:
@@ -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 --'."
|
||||
|
||||
@@ -104,8 +104,7 @@
|
||||
"pinnedExecs": [],
|
||||
"useApp2Unit": false,
|
||||
"sortByMostUsed": true,
|
||||
"terminalCommand": "xterm -e",
|
||||
"ignoreInitialMousePosition": false
|
||||
"terminalCommand": "xterm -e"
|
||||
},
|
||||
"controlCenter": {
|
||||
"position": "close_to_bar_button",
|
||||
|
||||
@@ -233,7 +233,6 @@ Singleton {
|
||||
property bool useApp2Unit: false
|
||||
property bool sortByMostUsed: true
|
||||
property string terminalCommand: "xterm -e"
|
||||
property bool ignoreInitialMousePosition: true
|
||||
}
|
||||
|
||||
// control center
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user