Skip to content

Commit

Permalink
Remove IsVideoConferenceBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay-o-Way committed Mar 10, 2023
1 parent c72a6cb commit acae5a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
15 changes: 0 additions & 15 deletions src/settings-ui/Settings.UI/ViewModels/ShellViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,6 @@ public bool IsBackEnabled
set { Set(ref isBackEnabled, value); }
}

public bool IsVideoConferenceBuild
{
get
{
var mfHandle = NativeMethods.LoadLibrary("mf.dll");
bool mfAvailable = mfHandle != IntPtr.Zero;
if (mfAvailable)
{
NativeMethods.FreeLibrary(mfHandle);
}

return this != null && File.Exists("modules/VideoConference/PowerToys.VideoConferenceModule.dll") && mfAvailable;
}
}

public NavigationViewItem Selected
{
get { return selected; }
Expand Down
3 changes: 1 addition & 2 deletions src/settings-ui/Settings.UI/Views/ShellPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@
<NavigationViewItem
x:Uid="Shell_VideoConference"
helpers:NavHelper.NavigateTo="views:VideoConferencePage"
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsVideoConferenceMute.png}"
IsEnabled="{x:Bind ViewModel.IsVideoConferenceBuild, Mode=OneWay}" />
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsVideoConferenceMute.png}" />
</NavigationView.MenuItems>
<NavigationView.PaneFooter>
<StackPanel Orientation="Vertical">
Expand Down

0 comments on commit acae5a5

Please sign in to comment.