Fixed notification + added saving of active shop id.

This commit is contained in:
Patrick Fic
2020-01-21 09:28:04 -08:00
parent f2d5c07c52
commit 99cf3efaf1
5 changed files with 195 additions and 47 deletions

View File

@@ -46,6 +46,7 @@ namespace BodyshopUploader.ViewModels
logger.Trace("Starting monitors if able to.");
if (StartFolderMonitorsCommand.CanExecute(null))
StartFolderMonitorsCommand.Execute(null);
MonitoringPaths.CollectionChanged += MonitoringPathsChanged;
}
private void bw_InitVm(object sender, DoWorkEventArgs e)
@@ -60,7 +61,7 @@ namespace BodyshopUploader.ViewModels
{
MonitoringPaths.Add(new Models.Monitor() { FilePath = p });
}
MonitoringPaths.CollectionChanged += MonitoringPathsChanged;
_callingThread.ReportProgress(30);
//Cannot use await.
@@ -192,6 +193,7 @@ namespace BodyshopUploader.ViewModels
}
Properties.Settings.Default.LastSelectedShop = ActiveShop.Id;
Properties.Settings.Default.Save();
Utils.AppMetaData.ActiveShopId = ActiveShop.Id;
IndeterminateLoading = false;
}