Fix display of welcome screen.

- Repariert: Willkommensdialog mit der Auswahl des Modus wurde technisch nicht gut angezeigt.
This commit is contained in:
daniel 2017-03-06 06:12:16 +01:00
parent dc6e1f9eaf
commit cc0573c326
1 changed files with 8 additions and 1 deletions

View File

@ -26,6 +26,7 @@ using System.Windows.Input;
using System.Windows.Controls;
using System.Windows.Media;
using System.Configuration;
using System.Windows.Threading;
namespace zaaReloaded2
{
@ -89,7 +90,12 @@ namespace zaaReloaded2
Updater.Version.Current.ToString()
);
ViewModels.FirstRunViewModel.InjectIntoIfNeeded<Views.FirstRunView>();
_dispatcher = Dispatcher.CurrentDispatcher;
System.Threading.Timer timer = new System.Threading.Timer((obj) =>
{
_dispatcher.Invoke((Action)(() => ViewModels.FirstRunViewModel.InjectIntoIfNeeded<Views.FirstRunView>()), null);
}, null, 1000, System.Threading.Timeout.Infinite);
Logger.Info("ThisAddIn_Startup: Finished startup");
}
@ -184,6 +190,7 @@ namespace zaaReloaded2
Ribbon _ribbon;
string _oldCaption;
UpdaterViewModel _updaterVM;
Dispatcher _dispatcher;
#endregion