From e97d335348a9429983477f6611f7ca2974d4aad9 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Mon, 21 Jun 2021 17:20:09 +0200 Subject: [PATCH] Made intentional sleep to windows only because it screws with linux --- AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs index 3b980c7..8c0f589 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs @@ -401,8 +401,9 @@ namespace AM2RLauncher UpdateProgressBar(100); log.Info("Successfully installed profile " + profile.Name + "."); - // This is just for visuals because the average end user will ask why it doesn't go to the end otherwise. - Thread.Sleep(1000); + // This is just for visuals because the average windows end user will ask why it doesn't go to the end otherwise. + if(Platform.IsWinForms) + Thread.Sleep(1000); } ///