From 0550ce03c169d7d18f0ab5ab37ee8e05f33462f2 Mon Sep 17 00:00:00 2001 From: Isaac Sh <424675+Iktwo@users.noreply.github.com> Date: Thu, 28 Feb 2019 22:06:43 -0800 Subject: [PATCH] Fix back button closing application instead of drawer --- src/qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index a792e1b..92da6e7 100755 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -89,8 +89,6 @@ ApplicationWindow { anchors.fill: parent - focus: true - source: "themes/" + Config.Theme.theme + "/ThemeMain.qml" } @@ -108,6 +106,8 @@ ApplicationWindow { focus: true Keys.onBackPressed: { + event.accepted = true + if (loaderMainTheme.item && loaderMainTheme.item.opened) { QL.Launcher.minimize() }