Merge pull request #6413 from husamemadH/fix-stranded-launching-osd

Stop stranding the Launching… OSD when a second app is launched
This commit is contained in:
David Heinemeier Hansson
2026-07-28 07:41:58 -07:00
committed by GitHub
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -26,6 +26,9 @@ Item {
property int launchSerial: 0
property int launchToplevelCount: 0
property var launchActiveToplevel: null
// True while the launch OSD is on screen. It outlives the launch that opened
// it: the OSD shows with duration 0, so only closeLaunchFeedback() takes it
// down.
property bool launchOsdOpen: false
property string launchOsdMessage: ""
@@ -154,7 +157,6 @@ Item {
root.launchSerial++
root.launchToplevelCount = root.toplevelCount()
root.launchActiveToplevel = ToplevelManager.activeToplevel
root.launchOsdOpen = false
root.launchOsdMessage = "Launching " + String(name || "application") + "…"
launchDelay.restart()
launchTimeout.restart()
+7
View File
@@ -121,6 +121,13 @@ assert(
'app library prefers indexed app icons over ambiguous themed icons'
)
const beginLaunchMatch = appLibraryQml.match(/function beginLaunchFeedback\(name\) \{([\s\S]*?)\n \}/)
assert(beginLaunchMatch, 'app library beginLaunchFeedback function exists')
assert(
!beginLaunchMatch[1].includes('root.launchOsdOpen = false'),
'app library keeps owning an OSD a previous launch left on screen'
)
const openMatch = menuQml.match(/function openExistingMenu\(initialMenu\) \{([\s\S]*?)\n \}/)
assert(openMatch, 'menu openExistingMenu function exists')
assert(