Fixed notification + added saving of active shop id.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user