mirror of
https://github.com/WiiDatabase/nusdownloader.git
synced 2024-11-23 10:49:16 +01:00
Made it store what it was disabling.
Note: change this to something better. Fixes Issue 10.
This commit is contained in:
parent
cfd5c129ab
commit
0a5717c111
@ -84,6 +84,9 @@ namespace NUS_Downloader
|
||||
private System.Drawing.Color errorcolor = Color.FromName("Crimson");
|
||||
private System.Drawing.Color infocolor = Color.FromName("RoyalBlue");
|
||||
|
||||
// Statuses of disabled things
|
||||
private bool[] disabledStorage = new bool[13];
|
||||
|
||||
// This is the standard entry to the GUI
|
||||
public Form1()
|
||||
{
|
||||
@ -1584,6 +1587,38 @@ namespace NUS_Downloader
|
||||
return;
|
||||
}
|
||||
// Disable things the user should not mess with during download...
|
||||
if (enabled)
|
||||
{ // we're enabling things that were enabled BEFORE:
|
||||
downloadstartbtn.Enabled = disabledStorage[0];
|
||||
titleidbox.Enabled = disabledStorage[1];
|
||||
titleversion.Enabled = disabledStorage[2];
|
||||
Extrasbtn.Enabled = disabledStorage[3];
|
||||
databaseButton.Enabled = disabledStorage[4];
|
||||
packbox.Enabled = disabledStorage[5];
|
||||
localuse.Enabled = disabledStorage[6];
|
||||
saveaswadbtn.Enabled = disabledStorage[7];
|
||||
decryptbox.Enabled = disabledStorage[8];
|
||||
keepenccontents.Enabled = disabledStorage[9];
|
||||
scriptsbutton.Enabled = disabledStorage[10];
|
||||
serverLbl.Enabled = disabledStorage[11];
|
||||
iosPatchCheckbox.Enabled = disabledStorage[12];
|
||||
}
|
||||
else
|
||||
{
|
||||
disabledStorage[0] = downloadstartbtn.Enabled;
|
||||
disabledStorage[1] = titleidbox.Enabled;
|
||||
disabledStorage[2] = titleversion.Enabled;
|
||||
disabledStorage[3] = Extrasbtn.Enabled;
|
||||
disabledStorage[4] = databaseButton.Enabled;
|
||||
disabledStorage[5] = packbox.Enabled;
|
||||
disabledStorage[6] = localuse.Enabled;
|
||||
disabledStorage[7] = saveaswadbtn.Enabled;
|
||||
disabledStorage[8] = decryptbox.Enabled;
|
||||
disabledStorage[9] = keepenccontents.Enabled;
|
||||
disabledStorage[10] = scriptsbutton.Enabled;
|
||||
disabledStorage[11] = serverLbl.Enabled;
|
||||
disabledStorage[12] = iosPatchCheckbox.Enabled;
|
||||
|
||||
downloadstartbtn.Enabled = enabled;
|
||||
titleidbox.Enabled = enabled;
|
||||
titleversion.Enabled = enabled;
|
||||
@ -1598,6 +1633,7 @@ namespace NUS_Downloader
|
||||
serverLbl.Enabled = enabled;
|
||||
iosPatchCheckbox.Enabled = enabled;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Makes tooltips disappear in the database, as many contain danger tag info.
|
||||
|
@ -128,7 +128,7 @@
|
||||
<value>..\Resources\bullet_redorange.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="wii16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\wii16x16 copy.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<value>..\Resources\wii16x16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="bullet_redgreen" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\bullet_redgreen.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
Loading…
Reference in New Issue
Block a user