mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-08 04:09:15 -04:00
feat(Launcher/Spotlight): improve context keyboard navigation and mode persistence (#2467)
* feat(Spotlight): fix submenu keyboard navigation * feat(Launcher/Spotlight): disable persisting last mode when changed by triggers * feat(Launcher/Spotlight): add option to disable last mode being persisted * fix(Launcher/Spotlight): fix context menu keys navigation * fix(NiriOverviewOverlay): fix context menu keys navigation and position
This commit is contained in:
@@ -1179,6 +1179,12 @@ Singleton {
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
function getLauncherRestoreMode() {
|
||||
if (!SettingsData.rememberLastMode)
|
||||
return "all";
|
||||
return launcherLastMode || "all";
|
||||
}
|
||||
|
||||
function setLauncherLastFileSearchType(type) {
|
||||
launcherLastFileSearchType = type;
|
||||
saveSettings();
|
||||
|
||||
@@ -435,6 +435,7 @@ Singleton {
|
||||
property int appLauncherGridColumns: 4
|
||||
property bool spotlightCloseNiriOverview: true
|
||||
property bool rememberLastQuery: false
|
||||
property bool rememberLastMode: true
|
||||
property var spotlightSectionViewModes: ({})
|
||||
onSpotlightSectionViewModesChanged: saveSettings()
|
||||
property var appDrawerSectionViewModes: ({})
|
||||
|
||||
@@ -203,6 +203,7 @@ var SPEC = {
|
||||
appLauncherGridColumns: { def: 4 },
|
||||
spotlightCloseNiriOverview: { def: true },
|
||||
rememberLastQuery: { def: false },
|
||||
rememberLastMode: { def: true },
|
||||
spotlightSectionViewModes: { def: {} },
|
||||
appDrawerSectionViewModes: { def: {} },
|
||||
niriOverviewOverlayEnabled: { def: true },
|
||||
|
||||
Reference in New Issue
Block a user