Fix setting page sometimes not visible when clicking on it
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
b930114eb0
commit
d74737a1e4
2 changed files with 7 additions and 6 deletions
|
@ -10,8 +10,7 @@ import QtQuick.Layouts 1.1
|
||||||
import org.kde.kirigami 2.0 as Kirigami
|
import org.kde.kirigami 2.0 as Kirigami
|
||||||
import org.kde.kdeconnect 1.0
|
import org.kde.kdeconnect 1.0
|
||||||
|
|
||||||
Kirigami.ScrollablePage
|
Kirigami.ScrollablePage {
|
||||||
{
|
|
||||||
id: root
|
id: root
|
||||||
title: i18n("Plugin Settings")
|
title: i18n("Plugin Settings")
|
||||||
property string device
|
property string device
|
||||||
|
@ -60,14 +59,15 @@ Kirigami.ScrollablePage
|
||||||
visible: configSource != ""
|
visible: configSource != ""
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
if (pageStack.lastItem.toString().startsWith("PluginInfoPage")) {
|
if (pageStack.lastItem.toString().startsWith("PluginInfoPage")) {
|
||||||
pageStack.lastItem.configFile = configSource
|
pageStack.lastItem.configFile = configSource;
|
||||||
pageStack.lastItem.title = name
|
pageStack.lastItem.title = name;
|
||||||
|
pageStack.goForward();
|
||||||
} else {
|
} else {
|
||||||
pageStack.push(Qt.resolvedUrl("PluginInfoPage.qml"), {
|
pageStack.push(Qt.resolvedUrl("PluginInfoPage.qml"), {
|
||||||
title: name,
|
title: name,
|
||||||
configFile: configSource,
|
configFile: configSource,
|
||||||
device: root.device
|
device: root.device,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,5 +13,6 @@
|
||||||
<file>qml/MprisSlider.qml</file>
|
<file>qml/MprisSlider.qml</file>
|
||||||
<file>qml/PluginSettings.qml</file>
|
<file>qml/PluginSettings.qml</file>
|
||||||
<file>qml/PluginInfoPage.qml</file>
|
<file>qml/PluginInfoPage.qml</file>
|
||||||
|
<file>qml/Settings.qml</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
Loading…
Reference in a new issue