diff --git a/Business/Menus.cs b/Business/Menus.cs index 7ec1f973..d108c0dd 100644 --- a/Business/Menus.cs +++ b/Business/Menus.cs @@ -35,7 +35,6 @@ internal class Menus : IDisposable private DateTime deactivatedTime = DateTime.MinValue; private DateTime dateTimeLastOpening = DateTime.MinValue; private OpenCloseState openCloseState = OpenCloseState.Default; - private bool showingMessageBox; private TaskbarPosition taskbarPosition = new WindowsTaskbar().Position; private bool searchTextChanging; private bool waitingForReactivate; @@ -126,30 +125,16 @@ void LoadMainMenuCompleted(object sender, RunWorkerCompletedEventArgs e) break; case MenuDataValidity.Empty: - IconReader.MainPreload = false; - if (!showingMessageBox) - { - showingMessageBox = true; - MessageBox.Show(Translator.GetText( - "MessageRootFolderEmpty")); - OpenFolder(); - Config.SetFolderByUser(); - showingMessageBox = false; - } - + MessageBox.Show(Translator.GetText("MessageRootFolderEmpty")); + OpenFolder(); + Config.SetFolderByUser(); + AppRestart.ByConfigChange(); break; case MenuDataValidity.NoAccess: - IconReader.MainPreload = false; - if (!showingMessageBox) - { - showingMessageBox = true; - MessageBox.Show(Translator.GetText( - "MessageRootFolderNoAccess")); - OpenFolder(); - Config.SetFolderByUser(); - showingMessageBox = false; - } - + MessageBox.Show(Translator.GetText("MessageRootFolderNoAccess")); + OpenFolder(); + Config.SetFolderByUser(); + AppRestart.ByConfigChange(); break; case MenuDataValidity.AbortedOrUnknown: Log.Info("MenuDataValidity.AbortedOrUnknown"); diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 694727eb..66c7938a 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -39,5 +39,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2.8.10")] -[assembly: AssemblyFileVersion("1.2.8.10")] +[assembly: AssemblyVersion("1.2.8.11")] +[assembly: AssemblyFileVersion("1.2.8.11")]