mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-04 02:34:52 +00:00
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…
x
Reference in New Issue
Block a user