Fixed error overlay for auth activity

This commit is contained in:
veeso
2021-05-21 12:31:30 +02:00
parent 60ee2f1c2b
commit 09665fead3
2 changed files with 11 additions and 10 deletions

View File

@@ -168,18 +168,18 @@ impl Activity for AuthActivity {
if let Err(err) = enable_raw_mode() {
error!("Failed to enter raw mode: {}", err);
}
// Initialize view
self.init();
// Init bookmarks client
if self.bookmarks_client.is_none() {
self.init_bookmarks_client();
}
// If check for updates is enabled, check for updates
self.check_for_updates();
// Verify error state from context
if let Some(err) = self.context.as_mut().unwrap().get_error() {
self.mount_error(err.as_str());
}
// If check for updates is enabled, check for updates
self.check_for_updates();
// Initialize view
self.init();
info!("Activity initialized");
}