You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -36,11 +37,27 @@ protected BaseLocoFileViewModel(FileSystemItem currentFile, ObjectEditorModel mo
36
37
publicabstractvoidLoad();
37
38
publicabstractvoidSave();
38
39
publicabstractvoidSaveAs();
40
+
publicvirtualvoidDelete(){}
41
+
42
+
asyncTaskSaveWrapper()
43
+
{
44
+
if(CurrentFileisFileSystemItemObjectfsio&&fsio.ObjectSourceisObjectSource.LocomotionSteam or ObjectSource.LocomotionGoG)
45
+
{
46
+
varbox=MessageBoxManager.GetMessageBoxStandard("Confirm Save","This is a vanilla loco file - are you sure you want to overwrite it?",ButtonEnum.YesNo);
47
+
varresult=awaitbox.ShowAsync();
48
+
49
+
if(result!=ButtonResult.Yes)
50
+
{
51
+
return;
52
+
}
53
+
}
54
+
55
+
Save();
56
+
}
39
57
40
58
asyncTaskDeleteWrapper()
41
59
{
42
-
varbox=MessageBoxManager
43
-
.GetMessageBoxStandard("Confirm Delete","Are you sure you would like to delete?",ButtonEnum.YesNo);
60
+
varbox=MessageBoxManager.GetMessageBoxStandard("Confirm Delete","Are you sure you would like to delete?",ButtonEnum.YesNo);
0 commit comments