Skip to content

Commit

Permalink
reset size overrides on panel size change
Browse files Browse the repository at this point in the history
this commit ensures that when the user sets a size override, it won't be overlooked if the user decides to change the size via the settings UI

Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
  • Loading branch information
ryanabx authored and wash2 committed Nov 2, 2024
1 parent 9c9b734 commit f93aa04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cosmic-settings/src/pages/desktop/panel/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ impl PageInner {
}
Message::PanelSize(size) => {
_ = panel_config.set_size(helper, size);
// Reset any size overrides the user might have set
_ = panel_config.set_size_center(helper, None);
_ = panel_config.set_size_wings(helper, None);
}
Message::Appearance(a) => {
if let Some(b) = [Appearance::Match, Appearance::Light, Appearance::Dark]
Expand Down

0 comments on commit f93aa04

Please sign in to comment.