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:
commit
cac33f586b
1 changed files with 3 additions and 1 deletions
|
|
@ -324,7 +324,9 @@ impl PageInner {
|
||||||
#[allow(clippy::too_many_lines)]
|
#[allow(clippy::too_many_lines)]
|
||||||
pub fn update(&mut self, message: Message) {
|
pub fn update(&mut self, message: Message) {
|
||||||
let helper = self.config_helper.as_ref().unwrap();
|
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 {
|
match message {
|
||||||
Message::AutoHidePanel(enabled) => {
|
Message::AutoHidePanel(enabled) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue