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
Copy file name to clipboardExpand all lines: Gui/ViewModels/DatTypes/BaseLocoFileViewModel.cs
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,9 +41,10 @@ public virtual void Delete() { }
41
41
42
42
asyncTaskSaveWrapper()
43
43
{
44
+
// note - this is the DAT file source, not the true source...
44
45
if(CurrentFileisFileSystemItemObjectfsio&&fsio.ObjectSourceisObjectSource.LocomotionSteam or ObjectSource.LocomotionGoG)
45
46
{
46
-
varbox=MessageBoxManager.GetMessageBoxStandard("Confirm Save","This is a vanilla loco file - are you sure you want to overwrite it?",ButtonEnum.YesNo);
47
+
varbox=MessageBoxManager.GetMessageBoxStandard("Confirm Save",$"{CurrentFile.Filename} is a vanilla Locomotion file - are you sure you want to overwrite it?",ButtonEnum.YesNo);
47
48
varresult=awaitbox.ShowAsync();
48
49
49
50
if(result!=ButtonResult.Yes)
@@ -57,7 +58,7 @@ async Task SaveWrapper()
57
58
58
59
asyncTaskDeleteWrapper()
59
60
{
60
-
varbox=MessageBoxManager.GetMessageBoxStandard("Confirm Delete","Are you sure you would like to delete?",ButtonEnum.YesNo);
61
+
varbox=MessageBoxManager.GetMessageBoxStandard("Confirm Delete",$"Are you sure you would like to delete{CurrentFile.Filename}?",ButtonEnum.YesNo);
0 commit comments