1
0
mirror of synced 2025-02-12 09:12:59 +01:00

Try to kill off program being open on update to fix deleting

This commit is contained in:
KillzXGaming 2019-05-13 20:59:37 -04:00
parent 231fba9bdd
commit 7cc5517dc7
7 changed files with 11 additions and 11 deletions

Binary file not shown.

View File

@ -31,6 +31,7 @@
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ImageEditorBase)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ImageEditorBase));
this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.stPanel2 = new Switch_Toolbox.Library.Forms.STPanel(); this.stPanel2 = new Switch_Toolbox.Library.Forms.STPanel();
this.stPanel1 = new Switch_Toolbox.Library.Forms.STPanel(); this.stPanel1 = new Switch_Toolbox.Library.Forms.STPanel();
this.stPanel4 = new Switch_Toolbox.Library.Forms.STPanel(); this.stPanel4 = new Switch_Toolbox.Library.Forms.STPanel();
@ -54,6 +55,7 @@
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.exportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fillColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.editInExternalProgramToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.editInExternalProgramToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -76,8 +78,6 @@
this.adjustmentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.adjustmentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.hueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.hueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.brightnessContrastToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.brightnessContrastToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.fillColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.SuspendLayout(); this.splitContainer1.SuspendLayout();
@ -366,6 +366,13 @@
this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20); this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20);
this.editToolStripMenuItem.Text = "Edit"; this.editToolStripMenuItem.Text = "Edit";
// //
// fillColorToolStripMenuItem
//
this.fillColorToolStripMenuItem.Name = "fillColorToolStripMenuItem";
this.fillColorToolStripMenuItem.Size = new System.Drawing.Size(192, 22);
this.fillColorToolStripMenuItem.Text = "Fill Color";
this.fillColorToolStripMenuItem.Click += new System.EventHandler(this.fillColorToolStripMenuItem_Click);
//
// undoToolStripMenuItem // undoToolStripMenuItem
// //
this.undoToolStripMenuItem.Name = "undoToolStripMenuItem"; this.undoToolStripMenuItem.Name = "undoToolStripMenuItem";
@ -541,13 +548,6 @@
this.brightnessContrastToolStripMenuItem.Size = new System.Drawing.Size(185, 22); this.brightnessContrastToolStripMenuItem.Size = new System.Drawing.Size(185, 22);
this.brightnessContrastToolStripMenuItem.Text = "Brightness / Contrast"; this.brightnessContrastToolStripMenuItem.Text = "Brightness / Contrast";
// //
// fillColorToolStripMenuItem
//
this.fillColorToolStripMenuItem.Name = "fillColorToolStripMenuItem";
this.fillColorToolStripMenuItem.Size = new System.Drawing.Size(192, 22);
this.fillColorToolStripMenuItem.Text = "Fill Color";
this.fillColorToolStripMenuItem.Click += new System.EventHandler(this.fillColorToolStripMenuItem_Click);
//
// ImageEditorBase // ImageEditorBase
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

View File

@ -1158,7 +1158,6 @@ namespace Switch_Toolbox.Library.Forms
else else
ApplyZoom(); ApplyZoom();
} }
private void ApplyZoom() private void ApplyZoom()
{ {
if (Runtime.ImageEditor.EnableImageZoom) if (Runtime.ImageEditor.EnableImageZoom)
@ -1176,6 +1175,7 @@ namespace Switch_Toolbox.Library.Forms
SetBottomBar(); SetBottomBar();
} }
private void SaveSettings() private void SaveSettings()
{ {
Config.Save(); Config.Save();

View File

@ -192,7 +192,7 @@ namespace Toolbox
proc.StartInfo.Arguments = "-d -i -b"; proc.StartInfo.Arguments = "-d -i -b";
proc.StartInfo.WindowStyle = ProcessWindowStyle.Normal; proc.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
proc.Start(); proc.Start();
Application.Exit(); Environment.Exit(0);
} }
#endregion #endregion