From 67f3a33926e0579e1ed9e38380f0825d04ea6d64 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/settings/PageSettingsAccessAndSecurity.qml b/pages/settings/PageSettingsAccessAndSecurity.qml index 3bb12a3d5..a6ecc37e8 100644 --- a/pages/settings/PageSettingsAccessAndSecurity.qml +++ b/pages/settings/PageSettingsAccessAndSecurity.qml @@ -202,6 +202,12 @@ 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, + //% "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