mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-21 21:03:44 +12:00
Started on Protocol Handler.
This commit is contained in:
parent
4e803c5585
commit
dc890e683b
|
@ -64,6 +64,10 @@ namespace ModAssistant
|
|||
window.Show();
|
||||
break;
|
||||
|
||||
case "--register":
|
||||
OneClickInstaller.Register();
|
||||
break;
|
||||
|
||||
default:
|
||||
Utils.SendNotify("Unrecognized argument. Closing Mod Assistant.");
|
||||
break;
|
||||
|
|
|
@ -72,5 +72,17 @@ namespace ModAssistant
|
|||
}
|
||||
}
|
||||
|
||||
public static void Register()
|
||||
{
|
||||
foreach (string protocol in Protocols)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static bool IsRegistered()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,7 +59,8 @@
|
|||
<CheckBox Grid.Row="7" Grid.Column="1" Name="ProtocolHandler" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding ProtocolHandlerEnabled, Mode=TwoWay}" Checked="ProtocolHandler_Checked" Unchecked="ProtocolHandler_Unchecked"/>
|
||||
<StackPanel Grid.Row="8" Margin="20,0,0,0" Background="LightYellow" HorizontalAlignment="Left">
|
||||
<TextBlock Margin="5,5,5,0" Text="Allows use of OneClick Install links" HorizontalAlignment="Left" />
|
||||
<TextBlock Margin="5,0,5,5" Text="Requires Admin" HorizontalAlignment="Left" />
|
||||
<TextBlock Margin="5,0,5,5" Text="Coming soon!" HorizontalAlignment="Left" />
|
||||
<!-- <TextBlock Margin="5,0,5,5" Text="Requires Admin" HorizontalAlignment="Left" /> -->
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="9" Margin="5" Orientation="Horizontal" HorizontalAlignment="Left">
|
||||
|
|
|
@ -42,6 +42,17 @@ namespace ModAssistant.Pages
|
|||
if (!CheckInstalledMods)
|
||||
SelectInstalled.IsEnabled = false;
|
||||
|
||||
if (OneClickInstaller.IsRegistered())
|
||||
{
|
||||
ProtocolHandler.IsChecked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ProtocolHandler.IsChecked = false;
|
||||
}
|
||||
|
||||
ProtocolHandler.IsEnabled = false;
|
||||
|
||||
this.DataContext = this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue