diff options
Diffstat (limited to 'src/app/input')
| -rw-r--r-- | src/app/input/settings.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/app/input/settings.rs b/src/app/input/settings.rs index 0e7c0d81..cc4f6d58 100644 --- a/src/app/input/settings.rs +++ b/src/app/input/settings.rs @@ -297,6 +297,7 @@ pub(crate) fn open_settings(state: &mut AppState) { } pub(crate) fn open_settings_at(state: &mut AppState, section: SettingsSection) { + state.integration_install_messages.clear(); state.settings.original_palette = Some(state.palette.clone()); state.settings.original_theme = Some(state.theme_name.clone()); state.settings.section = section; @@ -313,7 +314,12 @@ pub(crate) fn open_settings_at(state: &mut AppState, section: SettingsSection) { impl AppState { fn settings_popup_rect(&self) -> Rect { - crate::ui::centered_popup_rect(self.screen_rect(), 76, 22).unwrap_or_default() + crate::ui::centered_popup_rect( + self.screen_rect(), + crate::ui::SETTINGS_POPUP_WIDTH, + crate::ui::settings_popup_height(self), + ) + .unwrap_or_default() } fn settings_inner_rect(&self) -> Rect { |
