feat: added new messages to represent completion of saving and opening a file async

This commit is contained in:
Stevan Freeborn
2026-01-24 20:51:26 -06:00
parent 072ad61eb9
commit 4e3bdf8db3
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -41,6 +41,8 @@ fn update(state: &mut State, message: Message) -> Task<Message> {
Message::LinkClicked(url) => handler::link_clicked(url),
Message::FileActionSelected(action) => handler::file_action(state, action),
Message::ViewActionSelected(action) => handler::view_action(state, action),
Message::FileOpened(_) => todo!(),
Message::FileSaved(path_buf) => todo!(),
}
}
+3 -1
View File
@@ -1,4 +1,4 @@
use std::fmt::Display;
use std::{fmt::Display, path::PathBuf};
use iced::widget::text_editor;
@@ -68,4 +68,6 @@ pub enum Message {
ViewActionSelected(ViewAction),
SwitchTab(usize),
LinkClicked(String),
FileOpened(Result<(PathBuf, String), String>),
FileSaved(Result<PathBuf, String>),
}