Store save dialog filename in DialogKind

This commit is contained in:
Jeremy Soller 2024-02-20 11:58:39 -07:00
parent 162616f687
commit 88073536e2
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
4 changed files with 36 additions and 44 deletions

View file

@ -80,8 +80,8 @@ impl Application for App {
Message::DialogSave => {
if self.dialog_opt.is_none() {
let (dialog, command) = Dialog::new(
DialogKind::SaveFile,
Some("README.md".into()),
DialogKind::SaveFile { filename: "README.md".to_string() },
None,
Message::DialogMessage,
Message::DialogResult,
);