diff --git a/.gitignore b/.gitignore index f2c053b..acbfbbc 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,4 @@ source/GuiVersion/obj/Release/net5.0-windows/AmongUsModUpdater.csprojAssemblyRef /source/GuiVersion/AmongUsModUpdater.ModFunctions/obj/ /source/GuiVersion/AmongUsModUpdater.TheOtherRoles/obj/ /source/GuiVersion/WinForms.Logger/obj/ - +source/GuiVersion/AmongUsModUpdater/Properties/PublishProfiles/ \ No newline at end of file diff --git a/source/GuiVersion/AmongUsModUpdater/AmongUsModUpdater.csproj.user b/source/GuiVersion/AmongUsModUpdater/AmongUsModUpdater.csproj.user index c36d70e..2953deb 100644 --- a/source/GuiVersion/AmongUsModUpdater/AmongUsModUpdater.csproj.user +++ b/source/GuiVersion/AmongUsModUpdater/AmongUsModUpdater.csproj.user @@ -1,7 +1,7 @@  - <_LastSelectedProfileId>D:\Github\AmongUsModUpdater\source\GuiVersion\Properties\PublishProfiles\ClickOnceProfile.pubxml + <_LastSelectedProfileId>D:\AmongUsModUpdater\source\GuiVersion\AmongUsModUpdater\Properties\PublishProfiles\ClickOnceProfile.pubxml diff --git a/source/GuiVersion/AmongUsModUpdater/MainWindow.cs b/source/GuiVersion/AmongUsModUpdater/MainWindow.cs index 8b99ba9..c1045d0 100644 --- a/source/GuiVersion/AmongUsModUpdater/MainWindow.cs +++ b/source/GuiVersion/AmongUsModUpdater/MainWindow.cs @@ -54,18 +54,24 @@ public CustomTextBox.CustomTextBox SettingsGamePathTextBox public MainWindow() { InitializeComponent(); + initializeMainWindow(); + } + + private async void initializeMainWindow() + { + Logger.Log("Init", null); //Demo selectedMod = "The Other Roles"; - menuPanels = new [] { panelHome, panelSettings, panelHelp}; + menuPanels = new[] { panelHome, panelSettings, panelHelp }; menuButtons = new[] { homeButton, settingsButton, helpButton }; labelVersion.Text = "Among Us Mod Updater Version: " + Application.ProductVersion; settingsGamePathTextBox.Text = Properties.Settings.Default.GamePath; - newVersionUrl = AmongUsModUpdater.AmongUsModUpdater.checkVersionsUpdate(this).ToString(); + newVersionUrl = await AmongUsModUpdater.AmongUsModUpdater.checkVersionsUpdate(this); if (Properties.Settings.Default.Backup == true) { diff --git a/source/GuiVersion/AmongUsModUpdater/Properties/PublishProfiles/ClickOnceProfile.pubxml b/source/GuiVersion/AmongUsModUpdater/Properties/PublishProfiles/ClickOnceProfile.pubxml deleted file mode 100644 index a54e86a..0000000 --- a/source/GuiVersion/AmongUsModUpdater/Properties/PublishProfiles/ClickOnceProfile.pubxml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 6 - 2.2.0.0 - True - Release - True - False - True - True - Disk - False - False - True - False - Any CPU - Among Us Mod Updater - D:\Deploy\AmongUsModUpdater\ - D:\Deploy\AmongUsModUpdater\ - Jolle & Narua - ClickOnce - False - False - False - (Keine) - False - en - net5.0-windows - False - Foreground - False - Publish.htm - - - - True - .NET Desktop-Runtime 5.0.4 (x64) - - - \ No newline at end of file diff --git a/source/GuiVersion/AmongUsModUpdater/Properties/PublishProfiles/ClickOnceProfile.pubxml.user b/source/GuiVersion/AmongUsModUpdater/Properties/PublishProfiles/ClickOnceProfile.pubxml.user deleted file mode 100644 index 328dcc3..0000000 --- a/source/GuiVersion/AmongUsModUpdater/Properties/PublishProfiles/ClickOnceProfile.pubxml.user +++ /dev/null @@ -1,9 +0,0 @@ - - - - - True|2021-04-08T21:41:18.2628189Z;True|2021-04-08T23:31:27.9365892+02:00;True|2021-04-08T23:27:50.6173562+02:00;True|2021-04-08T23:20:15.7648369+02:00;True|2021-04-08T23:16:32.1001317+02:00;True|2021-04-08T23:08:04.9241815+02:00;True|2021-04-08T22:57:09.7035472+02:00;True|2021-04-08T22:56:16.4536682+02:00;True|2021-04-08T22:44:35.3369338+02:00;True|2021-04-08T22:43:39.8765020+02:00; - - \ No newline at end of file