added update check button that runs ryujinx-updater
This commit is contained in:
parent
09313e2fc8
commit
e7ee37cafb
2 changed files with 21 additions and 0 deletions
|
@ -474,6 +474,12 @@ namespace Ryujinx.UI
|
||||||
fc.Destroy();
|
fc.Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Update_Pressed(object o, EventArgs args)
|
||||||
|
{
|
||||||
|
string ryuUpdater = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "RyuFS", "RyuUpdater.exe");
|
||||||
|
Process.Start(new ProcessStartInfo(ryuUpdater, "/U") { UseShellExecute = true });
|
||||||
|
}
|
||||||
|
|
||||||
private void About_Pressed(object o, EventArgs args)
|
private void About_Pressed(object o, EventArgs args)
|
||||||
{
|
{
|
||||||
AboutWindow AboutWin = new AboutWindow();
|
AboutWindow AboutWin = new AboutWindow();
|
||||||
|
|
|
@ -272,6 +272,21 @@
|
||||||
<object class="GtkMenu">
|
<object class="GtkMenu">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="CheckUpdates">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="label" translatable="yes">Check for Updates</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<signal name="activate" handler="Update_Pressed" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSeparatorMenuItem">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkMenuItem" id="About">
|
<object class="GtkMenuItem" id="About">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue