From 644c158a992d62ffe6721e2d2d6bdecc6f2fe8f7 Mon Sep 17 00:00:00 2001 From: quyenvsp Date: Wed, 20 Sep 2023 14:57:11 +0700 Subject: [PATCH] VideoConference add new option ToolbarHide After timeout --- .../Settings.UI/SettingsXAML/Views/VideoConference.xaml | 1 + src/settings-ui/Settings.UI/Strings/en-us/Resources.resw | 3 +++ .../Settings.UI/ViewModels/VideoConferenceViewModel.cs | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/src/settings-ui/Settings.UI/SettingsXAML/Views/VideoConference.xaml b/src/settings-ui/Settings.UI/SettingsXAML/Views/VideoConference.xaml index cfcf3d62e4c4..ca101558f174 100644 --- a/src/settings-ui/Settings.UI/SettingsXAML/Views/VideoConference.xaml +++ b/src/settings-ui/Settings.UI/SettingsXAML/Views/VideoConference.xaml @@ -146,6 +146,7 @@ + diff --git a/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw b/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw index 50dfcccfb65f..b67d3ae513bc 100644 --- a/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw +++ b/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw @@ -561,6 +561,9 @@ When both camera and microphone are unmuted + + After timeout + Video Conference Mute diff --git a/src/settings-ui/Settings.UI/ViewModels/VideoConferenceViewModel.cs b/src/settings-ui/Settings.UI/ViewModels/VideoConferenceViewModel.cs index 9aec8e9a89f1..67c4405dc900 100644 --- a/src/settings-ui/Settings.UI/ViewModels/VideoConferenceViewModel.cs +++ b/src/settings-ui/Settings.UI/ViewModels/VideoConferenceViewModel.cs @@ -147,6 +147,9 @@ public VideoConferenceViewModel( case "When both camera and microphone are muted": _toolbarHideIndex = 2; break; + case "After timeout": + _toolbarHideIndex = 3; + break; } if (shouldSaveSettings) @@ -497,6 +500,9 @@ public int ToolbarHideIndex case 2: Settings.Properties.ToolbarHide.Value = "When both camera and microphone are muted"; break; + case 3: + Settings.Properties.ToolbarHide.Value = "After timeout"; + break; } RaisePropertyChanged(nameof(ToolbarHideIndex));