diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-10 20:12:05 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-10 20:12:05 +0300 |
| commit | 42ec7221310a4193f2a3717e2ea557c604dd07ae (patch) | |
| tree | 614688c2f3a17f7ae32077f4dd5692d00f90a943 /src/app/input/settings.rs | |
| parent | 09c0dabfb51d8bc48b450d84958d19b1b647d77a (diff) | |
feat: gate kimi integration install behind minimum agent version
Diffstat (limited to 'src/app/input/settings.rs')
| -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 { |
