Skip to content

Commit c422bb3

Browse files
committed
Fix new project status popup not closing
1 parent 5b7b58e commit c422bb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Nanoforge/Editor/NanoDB.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ public static void NewProject(string directory, string name, string author, stri
208208
{
209209
TaskDialog dialog = new TaskDialog();
210210
dialog.ShowDialog(MainWindow.Instance);
211+
status = dialog.ViewModel;
211212
}
212213
Save(status);
213214

@@ -256,8 +257,7 @@ public static void Save(TaskDialogViewModel? status = null, ProjectDoneSavingHan
256257

257258
Log.Information($"Saved project '{CurrentProject.FilePath}'");
258259
}
259-
status?.NextStep();
260-
status?.SetStatus($"Done!");
260+
status?.NextStep("Done!");
261261
status?.CloseDialog();
262262

263263
doneSavingHandler?.Invoke(true);

0 commit comments

Comments
 (0)