Remove screen sharing indicator when call ends

Previously, we would only remove it when the screen sharing stopped.
This commit is contained in:
Antonio Scandurra 2023-03-22 09:32:27 +01:00
parent 194c7a3af0
commit 7df798ded5

View file

@ -21,6 +21,8 @@ pub fn init(cx: &mut MutableAppContext) {
} else if let Some((window_id, _)) = status_indicator.take() {
cx.remove_status_bar_item(window_id);
}
} else if let Some((window_id, _)) = status_indicator.take() {
cx.remove_status_bar_item(window_id);
}
})
.detach();