homescreens/folio: Fix settings window raise when already opened

This commit is contained in:
Devin Lin 2023-10-22 10:20:32 -07:00
parent f1aff0b13e
commit c5fe3fc1eb

View file

@ -69,7 +69,11 @@ Item {
implicitHeight: Kirigami.Units.gridUnit * 4
implicitWidth: Kirigami.Units.gridUnit * 5
onClicked: settingsWindow.showMaximized()
onClicked: {
// ensure that if the window is already opened, it gets raised to the top
settingsWindow.hide();
settingsWindow.showMaximized();
}
}
QQC2.ToolButton {