mirror of
https://github.com/WB3000/nusdownloader.git
synced 2024-11-16 22:59:22 +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 errorcolor = Color.FromName("Crimson");
|
||||||
private System.Drawing.Color infocolor = Color.FromName("RoyalBlue");
|
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
|
// This is the standard entry to the GUI
|
||||||
public Form1()
|
public Form1()
|
||||||
{
|
{
|
||||||
@ -1584,19 +1587,52 @@ namespace NUS_Downloader
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Disable things the user should not mess with during download...
|
// Disable things the user should not mess with during download...
|
||||||
downloadstartbtn.Enabled = enabled;
|
if (enabled)
|
||||||
titleidbox.Enabled = enabled;
|
{ // we're enabling things that were enabled BEFORE:
|
||||||
titleversion.Enabled = enabled;
|
downloadstartbtn.Enabled = disabledStorage[0];
|
||||||
Extrasbtn.Enabled = enabled;
|
titleidbox.Enabled = disabledStorage[1];
|
||||||
databaseButton.Enabled = enabled;
|
titleversion.Enabled = disabledStorage[2];
|
||||||
packbox.Enabled = enabled;
|
Extrasbtn.Enabled = disabledStorage[3];
|
||||||
localuse.Enabled = enabled;
|
databaseButton.Enabled = disabledStorage[4];
|
||||||
saveaswadbtn.Enabled = enabled;
|
packbox.Enabled = disabledStorage[5];
|
||||||
decryptbox.Enabled = enabled;
|
localuse.Enabled = disabledStorage[6];
|
||||||
keepenccontents.Enabled = enabled;
|
saveaswadbtn.Enabled = disabledStorage[7];
|
||||||
scriptsbutton.Enabled = enabled;
|
decryptbox.Enabled = disabledStorage[8];
|
||||||
serverLbl.Enabled = enabled;
|
keepenccontents.Enabled = disabledStorage[9];
|
||||||
iosPatchCheckbox.Enabled = enabled;
|
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;
|
||||||
|
Extrasbtn.Enabled = enabled;
|
||||||
|
databaseButton.Enabled = enabled;
|
||||||
|
packbox.Enabled = enabled;
|
||||||
|
localuse.Enabled = enabled;
|
||||||
|
saveaswadbtn.Enabled = enabled;
|
||||||
|
decryptbox.Enabled = enabled;
|
||||||
|
keepenccontents.Enabled = enabled;
|
||||||
|
scriptsbutton.Enabled = enabled;
|
||||||
|
serverLbl.Enabled = enabled;
|
||||||
|
iosPatchCheckbox.Enabled = enabled;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -128,7 +128,7 @@
|
|||||||
<value>..\Resources\bullet_redorange.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\bullet_redorange.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="wii16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<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>
|
||||||
<data name="bullet_redgreen" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<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>
|
<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