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:
@@ -26,6 +26,9 @@ Item {
|
|||||||
property int launchSerial: 0
|
property int launchSerial: 0
|
||||||
property int launchToplevelCount: 0
|
property int launchToplevelCount: 0
|
||||||
property var launchActiveToplevel: null
|
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 bool launchOsdOpen: false
|
||||||
property string launchOsdMessage: ""
|
property string launchOsdMessage: ""
|
||||||
|
|
||||||
@@ -154,7 +157,6 @@ Item {
|
|||||||
root.launchSerial++
|
root.launchSerial++
|
||||||
root.launchToplevelCount = root.toplevelCount()
|
root.launchToplevelCount = root.toplevelCount()
|
||||||
root.launchActiveToplevel = ToplevelManager.activeToplevel
|
root.launchActiveToplevel = ToplevelManager.activeToplevel
|
||||||
root.launchOsdOpen = false
|
|
||||||
root.launchOsdMessage = "Launching " + String(name || "application") + "…"
|
root.launchOsdMessage = "Launching " + String(name || "application") + "…"
|
||||||
launchDelay.restart()
|
launchDelay.restart()
|
||||||
launchTimeout.restart()
|
launchTimeout.restart()
|
||||||
|
|||||||
@@ -121,6 +121,13 @@ assert(
|
|||||||
'app library prefers indexed app icons over ambiguous themed icons'
|
'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 \}/)
|
const openMatch = menuQml.match(/function openExistingMenu\(initialMenu\) \{([\s\S]*?)\n \}/)
|
||||||
assert(openMatch, 'menu openExistingMenu function exists')
|
assert(openMatch, 'menu openExistingMenu function exists')
|
||||||
assert(
|
assert(
|
||||||
|
|||||||
Reference in New Issue
Block a user