Revise cloud sync method naming

This commit is contained in:
jlewin 2019-04-17 07:33:14 -07:00
parent 617781f02d
commit 82db9aa435
2 changed files with 7 additions and 5 deletions

View file

@ -553,7 +553,9 @@ namespace MatterHackers.MatterControl
public static Func<PrinterInfo, string, Task<PrinterSettings>> GetPrinterProfileAsync;
// Executes the user printer profile sync logic in the webservices plugin
public static Func<string, IProgress<ProgressStatus>, Task> SyncPrinterProfiles;
public static Func<string, IProgress<ProgressStatus>, Task> SyncCloudProfiles;
public static Action<string> QueueCloudProfileSync;
// Returns all public printer profiles from the webservices plugin
public static Func<Task<OemProfileDictionary>> GetPublicProfileList;

View file

@ -147,8 +147,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
// Notify listeners of a ProfileListChange event due to this printers removal
ProfileManager.ProfilesListChanged.CallEvents(this, null);
// Force sync after marking for delete if assigned
ApplicationController.SyncPrinterProfiles?.Invoke("SettingsHelpers.SetMarkedForDelete()", null);
// Queue sync after marking printer for delete
ApplicationController.QueueCloudProfileSync?.Invoke("SettingsHelpers.SetMarkedForDelete()");
});
}
@ -691,8 +691,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
ProfilesListChanged.CallEvents(null, null);
// Force sync after any collection change event
ApplicationController.SyncPrinterProfiles?.Invoke("ProfileManager.Profiles_CollectionChanged()", null);
// Queue sync after any collection change event
ApplicationController.QueueCloudProfileSync?.Invoke("ProfileManager.Profiles_CollectionChanged()");
}
private void Printer_SettingsChanged(object sender, StringEventArgs e)