mirror of
https://github.com/wez/wezterm.git
synced 2024-09-20 19:27:22 +03:00
Avoid looping if window:set_config_overrides doesn't change the config
Assuming that the window config reloaded hook doesn't actually change anything, this will avoid a cycle where we keep triggering the hook over and over.
This commit is contained in:
parent
ab8907e735
commit
232b220d08
@ -810,9 +810,11 @@ impl TermWindow {
|
||||
.context("send GetConfigOverrides response")?;
|
||||
}
|
||||
TermWindowNotif::SetConfigOverrides(value) => {
|
||||
if value != self.config_overrides {
|
||||
self.config_overrides = value;
|
||||
self.config_was_reloaded();
|
||||
}
|
||||
}
|
||||
TermWindowNotif::CancelOverlayForPane(pane_id) => {
|
||||
self.cancel_overlay_for_pane(pane_id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user