fix pasting url & ley

This commit is contained in:
2024-06-22 18:45:56 +02:00
parent b7a201e621
commit a4a0549920

View File

@@ -248,15 +248,11 @@ public partial class Form1
private void RadButton_PasteModpackConfig_Click(object sender, EventArgs e) private void RadButton_PasteModpackConfig_Click(object sender, EventArgs e)
{ {
var text = Clipboard.GetText(); LoadUpdateConfigFile(Clipboard.GetText());
if (text.StartsWith("http"))
LoadUpdateConfigFile(text);
} }
private void RadButton_PasteInstallKey_Click(object sender, EventArgs e) private void RadButton_PasteInstallKey_Click(object sender, EventArgs e)
{ {
if (modpackInfo == null)
return;
LoadInstallKey(Clipboard.GetText()); LoadInstallKey(Clipboard.GetText());
} }