Enable updater
This commit is contained in:
parent
c8b1d71875
commit
822a4c699e
Binary file not shown.
@ -267,27 +267,23 @@ namespace FirstPlugin
|
|||||||
bool IsLoaded = false;
|
bool IsLoaded = false;
|
||||||
public override void OnClick(TreeView treeView)
|
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));
|
editor = new Viewport();
|
||||||
|
LibraryGUI.Instance.LoadEditor(editor);
|
||||||
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.Text = Text;
|
||||||
|
editor.Dock = DockStyle.Fill;
|
||||||
|
|
||||||
|
if (!IsLoaded)
|
||||||
|
{
|
||||||
|
editor.AddDrawable(Renderer);
|
||||||
|
editor.LoadObjects();
|
||||||
|
}
|
||||||
|
|
||||||
|
IsLoaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MarioKart.MK7.KCL kcl = null;
|
public MarioKart.MK7.KCL kcl = null;
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -111,25 +111,21 @@ namespace Toolbox
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region Updater
|
#region Updater
|
||||||
bool UpdatePromptShown = false;
|
|
||||||
private void Application_Idle(object sender, EventArgs e)
|
private void Application_Idle(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (UpdateProgram.CanUpdate && !Runtime.EnableVersionCheck)
|
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.
|
result = MessageBox.Show($"A new update is available {UpdateProgram.LatestRelease.TagName}!" +
|
||||||
UpdatePromptShown = true;
|
$" Would you like to install it?", "Updater", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
|
||||||
DialogResult result;
|
}
|
||||||
using (DialogCenteringService centeringService = new DialogCenteringService(this)) // center message box
|
if (result == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
result = MessageBox.Show($"A new update is available {UpdateProgram.LatestRelease.TagName}!" +
|
UpdateApplication();
|
||||||
$" 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
|
3/23/2019 1:40:02 PM +00:00
|
||||||
master
|
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 New Issue
Block a user