Skip to content

Commit

Permalink
Fix back button closing application instead of drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
Iktwo committed Mar 1, 2019
1 parent 73e987f commit 0550ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ ApplicationWindow {

anchors.fill: parent

focus: true

source: "themes/" + Config.Theme.theme + "/ThemeMain.qml"
}

Expand All @@ -108,6 +106,8 @@ ApplicationWindow {
focus: true

Keys.onBackPressed: {
event.accepted = true

if (loaderMainTheme.item && loaderMainTheme.item.opened) {
QL.Launcher.minimize()
}
Expand Down

0 comments on commit 0550ce0

Please sign in to comment.