Merge pull request #2370 from zed-industries/flip-screen-sharing-icon-states

Flip screen sharing icon states
This commit is contained in:
Joseph T. Lyons 2023-04-12 12:50:00 -04:00 committed by GitHub
commit b39b3541e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,10 +395,10 @@ impl CollabTitlebarItem {
let icon;
let tooltip;
if room.read(cx).is_screen_sharing() {
icon = "icons/disable_screen_sharing_12.svg";
icon = "icons/enable_screen_sharing_12.svg";
tooltip = "Stop Sharing Screen"
} else {
icon = "icons/enable_screen_sharing_12.svg";
icon = "icons/disable_screen_sharing_12.svg";
tooltip = "Share Screen";
}