mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-27 23:12:49 -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:
@@ -17,6 +17,7 @@ Item {
|
|||||||
property bool debounceSearch: true
|
property bool debounceSearch: true
|
||||||
property int debounceInterval: 50
|
property int debounceInterval: 50
|
||||||
property bool keyboardNavigationActive: false
|
property bool keyboardNavigationActive: false
|
||||||
|
property bool suppressUpdatesWhileLaunching: false
|
||||||
readonly property var categories: {
|
readonly property var categories: {
|
||||||
const allCategories = AppSearchService.getAllCategories().filter(cat => cat !== "Education" && cat !== "Science")
|
const allCategories = AppSearchService.getAllCategories().filter(cat => cat !== "Education" && cat !== "Science")
|
||||||
const result = ["All"]
|
const result = ["All"]
|
||||||
@@ -32,6 +33,10 @@ Item {
|
|||||||
signal viewModeSelected(string mode)
|
signal viewModeSelected(string mode)
|
||||||
|
|
||||||
function updateFilteredModel() {
|
function updateFilteredModel() {
|
||||||
|
if (suppressUpdatesWhileLaunching) {
|
||||||
|
suppressUpdatesWhileLaunching = false
|
||||||
|
return
|
||||||
|
}
|
||||||
filteredModel.clear()
|
filteredModel.clear()
|
||||||
selectedIndex = 0
|
selectedIndex = 0
|
||||||
keyboardNavigationActive = false
|
keyboardNavigationActive = false
|
||||||
@@ -125,6 +130,7 @@ Item {
|
|||||||
if (!appData) {
|
if (!appData) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
suppressUpdatesWhileLaunching = true
|
||||||
appData.desktopEntry.execute()
|
appData.desktopEntry.execute()
|
||||||
appLaunched(appData)
|
appLaunched(appData)
|
||||||
AppUsageHistoryData.addAppUsage(appData.desktopEntry)
|
AppUsageHistoryData.addAppUsage(appData.desktopEntry)
|
||||||
|
|||||||
Reference in New Issue
Block a user