Fix need to press Esc twice to exit popups/menus

This commit is contained in:
miruka
2020-04-01 08:01:13 -04:00
parent e33c202376
commit 554f5d6013
10 changed files with 52 additions and 19 deletions

View File

@@ -45,6 +45,12 @@ ApplicationWindow {
property var hideErrorTypes: new Set()
readonly property var visibleMenus: ({})
readonly property var visiblePopups: ({})
readonly property bool anyPopupOrMenu:
Object.keys(window.visibleMenus).length > 0 ||
Object.keys(window.visiblePopups).length > 0
function saveState(obj) {
if (! obj.saveName || ! obj.saveProperties ||