Browse Source

account-settings: Fix renamed page name

fractal-11
Kévin Commaille 10 months ago
parent
commit
7513de7634
No known key found for this signature in database
GPG Key ID: F26F4BE20A08255B
  1. 2
      src/session/view/account_settings/general_page/log_out_subpage.rs
  2. 5
      src/session/view/account_settings/mod.rs
  3. 4
      src/session/view/sidebar/mod.rs

2
src/session/view/account_settings/general_page/log_out_subpage.rs

@ -113,7 +113,7 @@ mod imp {
};
dialog.pop_subpage();
dialog.set_visible_page_name("security");
dialog.show_encryption_tab();
}
/// Log out the current session.

5
src/session/view/account_settings/mod.rs

@ -260,6 +260,11 @@ impl AccountSettings {
self.imp().account_management_url_builder()
}
/// Show the "Encryption" tab.
pub(crate) fn show_encryption_tab(&self) {
self.set_visible_page_name("encryption");
}
/// Show the given subpage.
pub(crate) fn show_subpage(&self, subpage: AccountSettingsSubpage) {
let Some(session) = self.session() else {

4
src/session/view/sidebar/mod.rs

@ -399,8 +399,8 @@ mod imp {
let dialog = AccountSettings::new(&session);
// Show the security tab if the user uses the back button.
dialog.set_visible_page_name("security");
// Show the encryption tab if the user uses the back button.
dialog.show_encryption_tab();
let security = session.security();
let crypto_identity_state = security.crypto_identity_state();

Loading…
Cancel
Save