1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

plugins: fix plugin confirm third part repo window

This commit is contained in:
bbedward
2026-01-15 22:55:11 -05:00
parent 993216e157
commit 012022d370

View File

@@ -270,7 +270,9 @@ FloatingWindow {
root.updateFilteredPlugins();
return;
}
thirdPartyConfirmModal.visible = true;
thirdPartyConfirmLoader.active = true;
if (thirdPartyConfirmLoader.item)
thirdPartyConfirmLoader.item.show();
}
}
@@ -668,9 +670,21 @@ FloatingWindow {
}
}
LazyLoader {
id: thirdPartyConfirmLoader
active: false
FloatingWindow {
id: thirdPartyConfirmModal
function show() {
visible = true;
}
function hide() {
visible = false;
}
objectName: "thirdPartyConfirm"
title: I18n.tr("Third-Party Plugin Warning")
implicitWidth: 500
@@ -684,7 +698,7 @@ FloatingWindow {
Keys.onPressed: event => {
if (event.key === Qt.Key_Escape) {
thirdPartyConfirmModal.visible = false;
thirdPartyConfirmModal.hide();
event.accepted = true;
}
}
@@ -724,7 +738,7 @@ FloatingWindow {
iconSize: Theme.iconSize - 2
iconColor: Theme.outline
anchors.verticalCenter: parent.verticalCenter
onClicked: thirdPartyConfirmModal.visible = false
onClicked: thirdPartyConfirmModal.hide()
}
}
@@ -771,7 +785,7 @@ FloatingWindow {
DankButton {
text: I18n.tr("Cancel")
iconName: "close"
onClicked: thirdPartyConfirmModal.visible = false
onClicked: thirdPartyConfirmModal.hide()
}
DankButton {
@@ -780,7 +794,8 @@ FloatingWindow {
onClicked: {
SessionData.setShowThirdPartyPlugins(true);
root.updateFilteredPlugins();
thirdPartyConfirmModal.visible = false;
thirdPartyConfirmModal.hide();
}
}
}
}