From d74737a1e40a745b897bd8565894b036805bc5f4 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 13 Dec 2022 21:49:21 +0100 Subject: [PATCH] Fix setting page sometimes not visible when clicking on it Signed-off-by: Carl Schwan --- app/qml/PluginSettings.qml | 12 ++++++------ app/resources.qrc | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/qml/PluginSettings.qml b/app/qml/PluginSettings.qml index e98cc1501..cc46e33e5 100644 --- a/app/qml/PluginSettings.qml +++ b/app/qml/PluginSettings.qml @@ -10,8 +10,7 @@ import QtQuick.Layouts 1.1 import org.kde.kirigami 2.0 as Kirigami import org.kde.kdeconnect 1.0 -Kirigami.ScrollablePage -{ +Kirigami.ScrollablePage { id: root title: i18n("Plugin Settings") property string device @@ -60,14 +59,15 @@ Kirigami.ScrollablePage visible: configSource != "" onTriggered: { if (pageStack.lastItem.toString().startsWith("PluginInfoPage")) { - pageStack.lastItem.configFile = configSource - pageStack.lastItem.title = name + pageStack.lastItem.configFile = configSource; + pageStack.lastItem.title = name; + pageStack.goForward(); } else { pageStack.push(Qt.resolvedUrl("PluginInfoPage.qml"), { title: name, configFile: configSource, - device: root.device - }) + device: root.device, + }); } } } diff --git a/app/resources.qrc b/app/resources.qrc index 9bedb9e07..5fd968a08 100644 --- a/app/resources.qrc +++ b/app/resources.qrc @@ -13,5 +13,6 @@ qml/MprisSlider.qml qml/PluginSettings.qml qml/PluginInfoPage.qml + qml/Settings.qml