Hopefully fixes the "Set Download Directory"

This commit is contained in:
Chax
2023-01-05 16:45:47 +01:00
committed by Fenopy
parent 46b3bafeb7
commit 1744ef86bf
5 changed files with 273 additions and 463 deletions

View File

@@ -195,7 +195,7 @@
<value>False</value>
</setting>
<setting name="downloadDir" serializeAs="String">
<value>Enviroment.CurrentDirectory</value>
<value>Environment.CurrentDirectory</value>
</setting>
</AndroidSideloader.Properties.Settings>
<AndroidADB.Sideloader.Properties.Settings>

View File

@@ -2405,7 +2405,7 @@ Things you can try:
bool doDownload = true;
if (Directory.Exists(gameDirectory))
{
DialogResult res = FlexibleMessageBox.Show(Program.form,
DialogResult res = FlexibleMessageBox.Show(
$"{gameName} exists in destination directory.\r\nWould you like to overwrite it?",
"Download again?", MessageBoxButtons.YesNo);
@@ -2533,7 +2533,7 @@ Things you can try:
}
catch (Exception ex)
{
_ = FlexibleMessageBox.Show(Program.form, $"Error deleting game files: {ex.Message}");
_ = FlexibleMessageBox.Show($"Error deleting game files: {ex.Message}");
}
ChangeTitle("");
break;
@@ -2566,7 +2566,7 @@ Things you can try:
gamesQueListBox.DataSource = null;
gamesQueListBox.DataSource = gamesQueueList;
_ = FlexibleMessageBox.Show(Program.form, $"Rclone error: {gameDownloadOutput.Error}");
_ = FlexibleMessageBox.Show($"Rclone error: {gameDownloadOutput.Error}");
output += new ProcessOutput("", "Download Failed");
}
}
@@ -2585,7 +2585,7 @@ Things you can try:
catch (Exception ex)
{
otherError = true;
_ = FlexibleMessageBox.Show(Program.form, $"7zip error: {ex.Message}");
_ = FlexibleMessageBox.Show($"7zip error: {ex.Message}");
output += new ProcessOutput("", "Extract Failed");
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -186,7 +186,7 @@
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="downloadDir" Type="System.String" Scope="User">
<Value Profile="(Default)">Enviroment.CurrentDirectory</Value>
<Value Profile="(Default)">Environment.CurrentDirectory</Value>
</Setting>
</Settings>
</SettingsFile>

View File

@@ -342,7 +342,7 @@ namespace AndroidSideloader
this.setDownloadDirectory.ForeColor = System.Drawing.Color.White;
this.setDownloadDirectory.Inactive1 = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.setDownloadDirectory.Inactive2 = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.setDownloadDirectory.Location = new System.Drawing.Point(29, 482);
this.setDownloadDirectory.Location = new System.Drawing.Point(29, 493);
this.setDownloadDirectory.Name = "setDownloadDirectory";
this.setDownloadDirectory.Radius = 5;
this.setDownloadDirectory.Size = new System.Drawing.Size(285, 31);
@@ -363,7 +363,7 @@ namespace AndroidSideloader
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = global::AndroidSideloader.Properties.Settings.Default.BackColor;
this.BackgroundImage = global::AndroidSideloader.Properties.Resources.pattern_cubes_1_1_1_0_0_0_1__000000_212121;
this.ClientSize = new System.Drawing.Size(342, 524);
this.ClientSize = new System.Drawing.Size(342, 555);
this.Controls.Add(this.trailersOn);
this.Controls.Add(this.setDownloadDirectory);
this.Controls.Add(this.lblMibs);