mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Remove IsVideoConferenceBuild
This commit is contained in:
@@ -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; }
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user