Remove IsVideoConferenceBuild

This commit is contained in:
Jay
2023-03-10 16:07:50 +01:00
parent c72a6cb9d4
commit acae5a5f3a
2 changed files with 1 additions and 17 deletions

View File

@@ -38,21 +38,6 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
set { Set(ref isBackEnabled, value); } 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 public NavigationViewItem Selected
{ {
get { return selected; } get { return selected; }

View File

@@ -137,8 +137,7 @@
<NavigationViewItem <NavigationViewItem
x:Uid="Shell_VideoConference" x:Uid="Shell_VideoConference"
helpers:NavHelper.NavigateTo="views:VideoConferencePage" helpers:NavHelper.NavigateTo="views:VideoConferencePage"
Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsVideoConferenceMute.png}" Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsVideoConferenceMute.png}" />
IsEnabled="{x:Bind ViewModel.IsVideoConferenceBuild, Mode=OneWay}" />
</NavigationView.MenuItems> </NavigationView.MenuItems>
<NavigationView.PaneFooter> <NavigationView.PaneFooter>
<StackPanel Orientation="Vertical"> <StackPanel Orientation="Vertical">