ui: hide installation key if no extras key can be used

This commit is contained in:
2025-06-30 05:50:41 +02:00
parent 433613e43d
commit 45ef76e647
2 changed files with 52 additions and 49 deletions

View File

@@ -97,6 +97,8 @@ public partial class MainForm
if (modpackInfo != null)
features = new(updateConfig);
radTextBox_InstallKey.Visible = radLabel_InstallationKey.Visible = !string.IsNullOrWhiteSpace(updateConfig.UnleashApiUrl);
if (modpackInfo == null || string.IsNullOrWhiteSpace(RadTextBox_MinecraftProfileFolder.Text) /*|| modpackInfo.Valid*/)
{
SetStatus(LangRes.StatusText_MinecraftProfileWarning, AppGlobals.Symbols.GetSvgImage(AppSymbols.general_warning_sign, SymbolSize.Small));
@@ -118,7 +120,6 @@ public partial class MainForm
RadButton_Install.Enabled = false;
return false;
}
RadButton_CheckForUpdates.Enabled = true;
RadButton_Install.Enabled = true;
return true;