Merge branch 'run_executables' of https://github.com/francesco-gaglione/cosmic-files into francesco-gaglione-run_executables

This commit is contained in:
Jeremy Soller 2024-10-03 11:07:10 -06:00
commit 00857511ca
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -250,7 +250,6 @@ impl MenuAction for NavMenuAction {
pub enum Message {
AddToSidebar(Option<Entity>),
AppTheme(AppTheme),
AddExecutablePermission(PathBuf),
CloseToast(widget::ToastId),
Compress(Option<Entity>),
Config(Config),
@ -1488,9 +1487,6 @@ impl Application for App {
}
}
}
Message::AddExecutablePermission(file_path) => {
return Command::batch([self.update(Message::AddExecutablePermission(file_path))]);
}
Message::DialogPush(dialog_page) => {
self.dialog_pages.push_back(dialog_page);
}
@ -3100,7 +3096,7 @@ impl Application for App {
.on_press(Message::DialogComplete),
)
.secondary_action(
widget::button::text("cancell")
widget::button::text(fl!("cancel"))
.style(theme::Button::Destructive)
.on_press(Message::DialogCancel),
)