Implement setting permissions, fixes #325

This commit is contained in:
Jeremy Soller 2025-05-16 09:39:53 -06:00
parent 2c8060f93b
commit 051001b9ea
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA
6 changed files with 186 additions and 81 deletions

View file

@ -3546,6 +3546,9 @@ impl Application for App {
//TODO: this will block for a few ms, run in background?
self.mime_app_cache.set_default(mime, id);
}
tab::Command::SetPermissions(path, mode) => {
commands.push(self.operation(Operation::SetPermissions { path, mode }));
}
tab::Command::WindowDrag => {
if let Some(window_id) = &self.window_id_opt {
commands.push(window::drag(*window_id));