mirror of
https://github.com/chylex/Backup-Essentials.git
synced 2025-06-17 06:39:56 +02:00
Delayed Home page loading to improve perceived performance
This commit is contained in:
parent
162874ada8
commit
349c620aa5
@ -32,8 +32,9 @@ namespace BackupEssentials{
|
|||||||
|
|
||||||
Loaded += (sender, args) => {
|
Loaded += (sender, args) => {
|
||||||
if (splashScreen != null)splashScreen.Close(new TimeSpan());
|
if (splashScreen != null)splashScreen.Close(new TimeSpan());
|
||||||
|
|
||||||
Dispatcher.BeginInvoke(DispatcherPriority.Loaded,new Action(() => {
|
Dispatcher.BeginInvoke(DispatcherPriority.Loaded,new Action(() => {
|
||||||
|
ShowPage(typeof(Home));
|
||||||
DataStorage.SetupForSaving(true);
|
DataStorage.SetupForSaving(true);
|
||||||
DataStorage.Load();
|
DataStorage.Load();
|
||||||
}));
|
}));
|
||||||
@ -48,8 +49,6 @@ namespace BackupEssentials{
|
|||||||
DataStorage.Save(true);
|
DataStorage.Save(true);
|
||||||
ExplorerIntegration.Refresh(true);
|
ExplorerIntegration.Refresh(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
ShowPage(typeof(Home));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ButtonWindowCloseClick(object sender, RoutedEventArgs e){
|
private void ButtonWindowCloseClick(object sender, RoutedEventArgs e){
|
||||||
|
Loading…
Reference in New Issue
Block a user