wezterm: config: only trigger error display for reloads
Otherwise, during early startup we'll trigger one before the frontend is started and show a toast message, and then later on we'll also show the wezterm error window, which feels a bit redundant. This way we reserve the toasts for panics and will generally use the wezterm window.
This commit is contained in:
1 parent
a91d30f2e7
commit
3946fc6738
1 file changed
+4
-1
+4
-1
@@ -165,7 +165,10 @@ impl ConfigInner {
|
||||
}
|
||||
Err(err) => {
|
||||
let err = format!("{:#}", err);
|
||||
crate::connui::show_configuration_error_message(&err);
|
||||
if self.generation > 0 {
|
||||
// Only generate the message for an actual reload
|
||||
crate::connui::show_configuration_error_message(&err);
|
||||
}
|
||||
self.error.replace(err);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user