diff --git a/Program.cs b/Program.cs index d274479..2b92ca6 100644 --- a/Program.cs +++ b/Program.cs @@ -17,7 +17,7 @@ internal static class Program static Mutex redunDancerMutex = new Mutex(true, "{readunDancer}"); #region variables and constants - public const string mbVersion = "0.0.1.4"; + public const string mbVersion = "0.0.1.6"; #endregion #region DPI diff --git a/core/mbGUI.cs b/core/mbGUI.cs index 26c6843..f6358c1 100644 --- a/core/mbGUI.cs +++ b/core/mbGUI.cs @@ -123,8 +123,11 @@ private void checkIPSettings() } public void PopUpNotification(string title, string message, int timeout) { - mbNotificationForm notification = new mbNotificationForm(title, message, timeout); - notification.Show(); + if (showNotifications) + { + mbNotificationForm notification = new mbNotificationForm(title, message, timeout); + notification.Show(); + } } private void StartCheckboxLock() { diff --git a/core/mbNotification.cs b/core/mbNotification.cs index 9e561f1..765bcd1 100644 --- a/core/mbNotification.cs +++ b/core/mbNotification.cs @@ -49,15 +49,11 @@ public mbNotificationForm(string title, string message, int timeout = 3000) mbTitleLabel.Click += (s, e) => this.Hide(); mbMessageLabel.Click += (s, e) => this.Hide(); - if (mbRedunDancerMain.showNotifications) - { - this.Show(); - mbKillWithDelay(timeout); - } + this.Show(); + mbKillWithDelay(timeout); } private async void mbKillWithDelay(int timeout) { - this.Opacity = 80; await Task.Delay(timeout); this.Close(); }