fix: check if loader item exists
This commit is contained in:
parent
e211acae9b
commit
853c23030c
|
@ -71,7 +71,8 @@ ApplicationWindow {
|
|||
|
||||
Action {
|
||||
shortcut: "Ctrl+W"
|
||||
enabled: loader.item.currentView !== Utils.getAppSectionIndex(Constants.browser)
|
||||
enabled: loader.item ? loader.item.currentView !== Utils.getAppSectionIndex(Constants.browser)
|
||||
: true
|
||||
onTriggered: {
|
||||
applicationWindow.visible = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue