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