Skip to content

Commit

Permalink
Fixed crash when opening logdump
Browse files Browse the repository at this point in the history
  • Loading branch information
GamingGuy003 committed Sep 24, 2024
1 parent 707c0c0 commit 3f6cbda
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
23 changes: 13 additions & 10 deletions src/frontend/iced.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,17 +614,20 @@ impl Raspirus {
},
}),
// open a path
Message::Open { path } => iced::Task::done({
info!("Opening {}...", path.to_string_lossy());
match open::that(path) {
Ok(_) => Message::None,
Err(message) => Message::Error {
case: ErrorCase::Warning {
message: message.to_string(),
Message::Open { path } => iced::Task::perform(
async {
info!("Opening {}...", path.to_string_lossy());
match open::that(path) {
Ok(_) => Message::None,
Err(message) => Message::Error {
case: ErrorCase::Warning {
message: message.to_string(),
},
},
},
}
}),
}
},
|result| result,
),
Message::OpenTerms => {
self.state = State::Terms;
iced::Task::none()
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/panels/information.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Raspirus {
.push(Self::info_card(
svg_plain(crate::USER_CODE),
t!("maintainers"),
"Benjamin Demetz, Felix Hell Björn".into(),
"Benjamin Demetz, Björn Felix Hell".into(),
))
.push(Self::info_card(
svg_plain(crate::GIT_COMMIT),
Expand Down

0 comments on commit 3f6cbda

Please sign in to comment.