Started on Protocol Handler.

This commit is contained in:
Assistant 2019-05-04 12:08:54 -04:00
parent 4e803c5585
commit dc890e683b
4 changed files with 29 additions and 1 deletions

View file

@ -64,6 +64,10 @@ namespace ModAssistant
window.Show();
break;
case "--register":
OneClickInstaller.Register();
break;
default:
Utils.SendNotify("Unrecognized argument. Closing Mod Assistant.");
break;

View file

@ -72,5 +72,17 @@ namespace ModAssistant
}
}
public static void Register()
{
foreach (string protocol in Protocols)
{
}
}
public static bool IsRegistered()
{
return false;
}
}
}

View file

@ -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">

View file

@ -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;
}