Skip to content

Commit

Permalink
Show a toast notification when changing security profiles
Browse files Browse the repository at this point in the history
For wasm builds only. "Page will automatically reload in 5 seconds"
Part of #1881
  • Loading branch information
DanielMcInnes committed Feb 5, 2025
1 parent f6f31c5 commit 67f3a33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pages/settings/PageSettingsAccessAndSecurity.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67f3a33

Please sign in to comment.