Skip to content

Commit

Permalink
fix: remove shell maybe cause panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Dec 6, 2024
1 parent f1939a2 commit 4438667
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iced_layershell/src/multi_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,11 @@ pub(crate) fn run_action<A, C>(
}
let option_id = if let LayershellCustomActionsWithInfo::RemoveWindow(id) = action.1
{
window_manager.get_layer_id(id)
let option_id = window_manager.get_layer_id(id);
if option_id.is_none() {
return;
}
option_id
} else {
None
};
Expand Down

0 comments on commit 4438667

Please sign in to comment.