1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 14:02:53 -05:00

stop app launcher from updating and reorganizing results on fade out when it is launching an app (#211)

This commit is contained in:
Body
2025-09-19 15:04:41 +01:00
committed by GitHub
parent 5fcffba73e
commit 88b7657e34

View File

@@ -17,6 +17,7 @@ Item {
property bool debounceSearch: true
property int debounceInterval: 50
property bool keyboardNavigationActive: false
property bool suppressUpdatesWhileLaunching: false
readonly property var categories: {
const allCategories = AppSearchService.getAllCategories().filter(cat => cat !== "Education" && cat !== "Science")
const result = ["All"]
@@ -32,6 +33,10 @@ Item {
signal viewModeSelected(string mode)
function updateFilteredModel() {
if (suppressUpdatesWhileLaunching) {
suppressUpdatesWhileLaunching = false
return
}
filteredModel.clear()
selectedIndex = 0
keyboardNavigationActive = false
@@ -125,6 +130,7 @@ Item {
if (!appData) {
return
}
suppressUpdatesWhileLaunching = true
appData.desktopEntry.execute()
appLaunched(appData)
AppUsageHistoryData.addAppUsage(appData.desktopEntry)