Skip to content

Commit

Permalink
Added a prompt to confirm that the service will be stopped to perfrom…
Browse files Browse the repository at this point in the history
… the update.
  • Loading branch information
therimmer96 committed Nov 13, 2023
1 parent 39dff95 commit 733e413
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ASA-Manager/UpdaterWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
using System.Diagnostics;
using System.Printing;
using System.Text.RegularExpressions;
using MessageBox = System.Windows.MessageBox;

namespace ARKServerCreationTool
{
Expand Down Expand Up @@ -48,6 +49,11 @@ private async void btn_runUpdate_Click(object sender, RoutedEventArgs e)
{
if (!IsUpdating())
{
if (GameProcessManager.IsRunning)
{
MessageBoxResult msgResult = MessageBox.Show("The ASA server is currently running. ASCT will stop the game server to perform the update. Would you like to continue to update?", "Server running - continue?", MessageBoxButton.YesNo, MessageBoxImage.Question);
if (msgResult == MessageBoxResult.No) { return; }
}
btn_runUpdate.IsEnabled = false;
txt_updateConsole.Text = string.Empty;
updateTask = Task.Factory.StartNew(() => { Update(); });
Expand Down

0 comments on commit 733e413

Please sign in to comment.