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