From 8efc8e8e1df5c1be012076ae283e592d7a271ffb Mon Sep 17 00:00:00 2001 From: Daniel McInnes Date: Wed, 5 Feb 2025 13:56:59 +1000 Subject: [PATCH] Show a toast notification when changing security profiles For wasm builds only. "Page will automatically reload in 5 seconds" Part of #1881 --- pages/settings/PageSettingsAccessAndSecurity.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pages/settings/PageSettingsAccessAndSecurity.qml b/pages/settings/PageSettingsAccessAndSecurity.qml index 3bb12a3d5..f0c8d3c62 100644 --- a/pages/settings/PageSettingsAccessAndSecurity.qml +++ b/pages/settings/PageSettingsAccessAndSecurity.qml @@ -202,6 +202,15 @@ Page { // This guards the wasm version to trigger a reload even if the reply isn't received. BackendConnection.securityProtocolChanged() Global.pageManager.popPage() + if (Qt.platform.os === "wasm") { + Global.showToastNotification(VenusOS.Notification_Info, + BackendConnection.vrm + //% "Closing due to security protocol change, you will need to relaunch remote console via VRM" + ? qsTrId("access_and_security_closing_remote_console") + //% "Page will automatically reload in 5 seconds" + : qsTrId("access_and_security_page_will_reload"), + 3000) + } } dialogDoneOptions: VenusOS.ModalDialog_DoneOptions_OkAndCancel height: securityProfile.pendingProfile === VenusOS.Security_Profile_Secured