Merge pull request #71 from pop-os/panel-config-update-panic

Return early from panel PageInner::update function if no panel_config
This commit is contained in:
Jeremy Soller 2023-09-13 14:27:41 -06:00 committed by GitHub
commit cac33f586b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -324,7 +324,9 @@ impl PageInner {
#[allow(clippy::too_many_lines)]
pub fn update(&mut self, message: Message) {
let helper = self.config_helper.as_ref().unwrap();
let mut panel_config = self.panel_config.as_mut().unwrap();
let Some(mut panel_config) = self.panel_config.as_mut() else {
return
};
match message {
Message::AutoHidePanel(enabled) => {