mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
Enable updater
This commit is contained in:
parent
c8b1d71875
commit
822a4c699e
12 changed files with 13400 additions and 34 deletions
Binary file not shown.
|
@ -267,27 +267,23 @@ namespace FirstPlugin
|
|||
bool IsLoaded = false;
|
||||
public override void OnClick(TreeView treeView)
|
||||
{
|
||||
if (!Runtime.DisableViewport)
|
||||
Viewport editor = (Viewport)LibraryGUI.Instance.GetActiveContent(typeof(Viewport));
|
||||
|
||||
if (editor == null)
|
||||
{
|
||||
Viewport editor = (Viewport)LibraryGUI.Instance.GetActiveContent(typeof(Viewport));
|
||||
|
||||
if (editor == null)
|
||||
{
|
||||
editor = new Viewport();
|
||||
LibraryGUI.Instance.LoadEditor(editor);
|
||||
}
|
||||
editor.Text = Text;
|
||||
editor.Dock = DockStyle.Fill;
|
||||
|
||||
if (!IsLoaded)
|
||||
{
|
||||
editor.AddDrawable(Renderer);
|
||||
editor.LoadObjects();
|
||||
}
|
||||
|
||||
|
||||
IsLoaded = true;
|
||||
editor = new Viewport();
|
||||
LibraryGUI.Instance.LoadEditor(editor);
|
||||
}
|
||||
editor.Text = Text;
|
||||
editor.Dock = DockStyle.Fill;
|
||||
|
||||
if (!IsLoaded)
|
||||
{
|
||||
editor.AddDrawable(Renderer);
|
||||
editor.LoadObjects();
|
||||
}
|
||||
|
||||
IsLoaded = true;
|
||||
}
|
||||
|
||||
public MarioKart.MK7.KCL kcl = null;
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -111,25 +111,21 @@ namespace Toolbox
|
|||
}
|
||||
|
||||
#region Updater
|
||||
bool UpdatePromptShown = false;
|
||||
private void Application_Idle(object sender, EventArgs e)
|
||||
{
|
||||
if (UpdateProgram.CanUpdate && !Runtime.EnableVersionCheck)
|
||||
{
|
||||
if (!UpdatePromptShown)
|
||||
//Prompt once for the user to update the tool.
|
||||
UpdatePromptShown = true;
|
||||
DialogResult result;
|
||||
using (DialogCenteringService centeringService = new DialogCenteringService(this)) // center message box
|
||||
{
|
||||
//Prompt once for the user to update the tool.
|
||||
UpdatePromptShown = true;
|
||||
DialogResult result;
|
||||
using (DialogCenteringService centeringService = new DialogCenteringService(this)) // center message box
|
||||
{
|
||||
result = MessageBox.Show($"A new update is available {UpdateProgram.LatestRelease.TagName}!" +
|
||||
$" Would you like to install it?", "Updater", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
|
||||
}
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
UpdateApplication();
|
||||
}
|
||||
result = MessageBox.Show($"A new update is available {UpdateProgram.LatestRelease.TagName}!" +
|
||||
$" Would you like to install it?", "Updater", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
|
||||
}
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
UpdateApplication();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
v1.0 BETA
|
||||
v1.0 r1 BETA EXPERIMENTAL
|
||||
3/23/2019 1:40:02 PM +00:00
|
||||
master
|
BIN
packages/CsvHelper.8.0.0-beta01/.signature.p7s
Normal file
BIN
packages/CsvHelper.8.0.0-beta01/.signature.p7s
Normal file
Binary file not shown.
BIN
packages/CsvHelper.8.0.0-beta01/CsvHelper.8.0.0-beta01.nupkg
Normal file
BIN
packages/CsvHelper.8.0.0-beta01/CsvHelper.8.0.0-beta01.nupkg
Normal file
Binary file not shown.
BIN
packages/CsvHelper.8.0.0-beta01/lib/net45/CsvHelper.dll
Normal file
BIN
packages/CsvHelper.8.0.0-beta01/lib/net45/CsvHelper.dll
Normal file
Binary file not shown.
6687
packages/CsvHelper.8.0.0-beta01/lib/net45/CsvHelper.xml
Normal file
6687
packages/CsvHelper.8.0.0-beta01/lib/net45/CsvHelper.xml
Normal file
File diff suppressed because it is too large
Load diff
BIN
packages/CsvHelper.8.0.0-beta01/lib/netstandard2.0/CsvHelper.dll
vendored
Normal file
BIN
packages/CsvHelper.8.0.0-beta01/lib/netstandard2.0/CsvHelper.dll
vendored
Normal file
Binary file not shown.
6687
packages/CsvHelper.8.0.0-beta01/lib/netstandard2.0/CsvHelper.xml
vendored
Normal file
6687
packages/CsvHelper.8.0.0-beta01/lib/netstandard2.0/CsvHelper.xml
vendored
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue