migrate settings

This commit is contained in:
2024-06-18 11:17:57 +02:00
parent 0f3e93bfff
commit 40279ba6b9
4 changed files with 55 additions and 70 deletions

View File

@@ -77,9 +77,7 @@ public partial class Form1
if (IsUpdateConfigLoaded())
RadButton_CheckForUpdates.PerformClick();
else
{
ClearStatus();
}
}
private void LoadUpdateConfigFile(string filePath)
@@ -98,9 +96,7 @@ public partial class Form1
if (IsMinecaftProfileLoaded())
RadButton_CheckForUpdates.PerformClick();
else
{
ClearStatus();
}
}
private async Task ExecuteUpdate(bool doInstall)
@@ -144,9 +140,7 @@ public partial class Form1
SetStatus(LangRes.StatusTest_EverythingOk, MySymbols.icons8_checkmark_16px);
}
else
{
SetStatus(LangRes.StatusText_ErrorWhileUpdateCheckOrUpdate, MySymbols.icons8_delete_16px);
}
}
catch
{
@@ -158,14 +152,10 @@ public partial class Form1
}
}
else
{
SetStatus(LangRes.StatusText_UpdateAvailable, MySymbols.icons8_software_installer_16px);
}
}
else
{
SetStatus(LangRes.StatusTest_EverythingOk, MySymbols.icons8_checkmark_16px);
}
}
private void Update_InstallProgessUpdated(UpdateCheckResult result, int processedSyncs)
@@ -223,7 +213,6 @@ public partial class Form1
{
AppConfig.Instance.LastMinecraftProfilePath = RadTextBoxControl_MinecraftProfileFolder.Text;
AppConfig.Instance.LastConfigFilePath = RadTextBoxControl_ModpackConfig.Text;
AppConfig.Instance.SaveConfig();
}
private void Form1_Load(object sender, EventArgs e)