diff --git a/.idea/.idea.ModpackUpdater/.idea/.gitignore b/.idea/.idea.ModpackUpdater/.idea/.gitignore
new file mode 100644
index 0000000..1542328
--- /dev/null
+++ b/.idea/.idea.ModpackUpdater/.idea/.gitignore
@@ -0,0 +1,13 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Rider ignored files
+/modules.xml
+/projectSettingsUpdater.xml
+/contentModel.xml
+/.idea.ModpackUpdater.iml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/.idea.ModpackUpdater/.idea/.name b/.idea/.idea.ModpackUpdater/.idea/.name
new file mode 100644
index 0000000..5fee58b
--- /dev/null
+++ b/.idea/.idea.ModpackUpdater/.idea/.name
@@ -0,0 +1 @@
+ModpackUpdater
\ No newline at end of file
diff --git a/.idea/.idea.ModpackUpdater/.idea/avalonia.xml b/.idea/.idea.ModpackUpdater/.idea/avalonia.xml
new file mode 100644
index 0000000..d11a4f6
--- /dev/null
+++ b/.idea/.idea.ModpackUpdater/.idea/avalonia.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.ModpackUpdater/.idea/encodings.xml b/.idea/.idea.ModpackUpdater/.idea/encodings.xml
new file mode 100644
index 0000000..df87cf9
--- /dev/null
+++ b/.idea/.idea.ModpackUpdater/.idea/encodings.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.ModpackUpdater/.idea/indexLayout.xml b/.idea/.idea.ModpackUpdater/.idea/indexLayout.xml
new file mode 100644
index 0000000..7b08163
--- /dev/null
+++ b/.idea/.idea.ModpackUpdater/.idea/indexLayout.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.ModpackUpdater/.idea/vcs.xml b/.idea/.idea.ModpackUpdater/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/.idea.ModpackUpdater/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ModpackUpdater.Apps.Client.Gui/App.axaml b/ModpackUpdater.Apps.Client.Gui/App.axaml
index 1891369..c06898b 100644
--- a/ModpackUpdater.Apps.Client.Gui/App.axaml
+++ b/ModpackUpdater.Apps.Client.Gui/App.axaml
@@ -4,7 +4,7 @@
RequestedThemeVariant="Default">
-
-
-
+
+
+
\ No newline at end of file
diff --git a/ModpackUpdater.Apps.Client.Gui/minecraft modpack updater.svg b/ModpackUpdater.Apps.Client.Gui/Assets/app.svg
similarity index 100%
rename from ModpackUpdater.Apps.Client.Gui/minecraft modpack updater.svg
rename to ModpackUpdater.Apps.Client.Gui/Assets/app.svg
diff --git a/ModpackUpdater.Apps.Client.Gui/MainForm.axaml b/ModpackUpdater.Apps.Client.Gui/MainForm.axaml
index 5b0ea7a..9967507 100644
--- a/ModpackUpdater.Apps.Client.Gui/MainForm.axaml
+++ b/ModpackUpdater.Apps.Client.Gui/MainForm.axaml
@@ -3,7 +3,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:lang="clr-namespace:ModpackUpdater.Apps.Client.Gui.LangRes"
- xmlns:svg="clr-namespace:Avalonia.Svg;assembly=Avalonia.Svg"
+ xmlns:pilz="https://git.pilzinsel64.de/pilz-framework/pilz"
mc:Ignorable="d"
x:Class="ModpackUpdater.Apps.Client.Gui.MainForm"
SizeToContent="WidthAndHeight"
@@ -13,7 +13,7 @@
-
-
-
-
+
+
+
+
diff --git a/ModpackUpdater.Apps.Client.Gui/MainForm.axaml.cs b/ModpackUpdater.Apps.Client.Gui/MainForm.axaml.cs
index ee383a7..a7f0a2d 100644
--- a/ModpackUpdater.Apps.Client.Gui/MainForm.axaml.cs
+++ b/ModpackUpdater.Apps.Client.Gui/MainForm.axaml.cs
@@ -11,6 +11,7 @@ using Pilz.SymbolPacks.Sets;
using Pilz.UI.AvaloniaUI.Symbols;
using System.Diagnostics;
using System.Reflection;
+using Pilz.UI.Symbols;
namespace ModpackUpdater.Apps.Client.Gui;
@@ -34,10 +35,10 @@ public partial class MainForm : Window
Closing += MainForm_Closing;
Loaded += MainForm_Loaded;
- ButtonImageSearchProfileFolder.Source = Symbols.Fluent.GetImageSource(SymbolsFluent.opened_folder);
- ButtonImageCheckForUpdates.Source = Symbols.Fluent.GetImageSource(SymbolsFluent.update);
- ButtonImageInstall.Source = Symbols.Fluent.GetImageSource(SymbolsFluent.software_installer);
- MenuItemImageRepair.Source = Symbols.Fluent.GetImageSource(SymbolsFluent.wrench);
+ ButtonSearchProfileFolder.ImageSource = Symbols.Fluent.GetImageSource(SymbolsFluent.opened_folder);
+ ButtonCheckForUpdates.ImageSource = Symbols.Fluent.GetImageSource(SymbolsFluent.update);
+ ButtonInstall.ImageSource = Symbols.Fluent.GetImageSource(SymbolsFluent.software_installer);
+ MenuItemRepair.Icon = Symbols.Fluent.GetImage(SymbolsFluent.wrench, SymbolSize.Small);
ClearStatus();
LoadProfileToUi();
@@ -115,7 +116,7 @@ public partial class MainForm : Window
ButtonInstall.IsEnabled = false;
return false;
}
- else if (updateConfig == null || string.IsNullOrWhiteSpace(TextBoxModpackConfig.Text))
+ else if (string.IsNullOrWhiteSpace(TextBoxModpackConfig.Text))
{
SetStatus(GeneralLangRes.ConfigIncompleteOrNotLoaded, Symbols.Fluent.GetImageSource(SymbolsFluent.warning_shield));
ButtonCheckForUpdates.IsEnabled = false;
@@ -271,7 +272,6 @@ public partial class MainForm : Window
//Application.Restart(); // FIXME
return;
}
-
CheckStatusAndUpdate(true);
}
@@ -314,20 +314,20 @@ public partial class MainForm : Window
private async void ButtonInstall_Click(object? sender, RoutedEventArgs e)
{
- if (!currentUpdating)
- {
- ClearStatus();
- await ExecuteUpdate(true, false);
- }
+ if (currentUpdating)
+ return;
+
+ ClearStatus();
+ await ExecuteUpdate(true, false);
}
private async void MenuItemRepair_Click(object? sender, RoutedEventArgs e)
{
- if (!currentUpdating)
- {
- ClearStatus();
- await ExecuteUpdate(true, true);
- }
+ if (currentUpdating)
+ return;
+
+ ClearStatus();
+ await ExecuteUpdate(true, true);
}
#endregion
diff --git a/ModpackUpdater.Apps.Client.Gui/ModpackUpdater.Apps.Client.Gui.csproj b/ModpackUpdater.Apps.Client.Gui/ModpackUpdater.Apps.Client.Gui.csproj
index 30b6c23..265a2d7 100644
--- a/ModpackUpdater.Apps.Client.Gui/ModpackUpdater.Apps.Client.Gui.csproj
+++ b/ModpackUpdater.Apps.Client.Gui/ModpackUpdater.Apps.Client.Gui.csproj
@@ -10,6 +10,7 @@
true
true
true
+ latest
@@ -61,7 +62,7 @@
-
+