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 c92c207
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pages/settings/PageSettingsAccessAndSecurity.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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.isVrm
//% "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
Expand Down

0 comments on commit c92c207

Please sign in to comment.