Fix stuff
This commit is contained in:
parent
9e763a91ef
commit
a9bf713dd5
@ -110,9 +110,10 @@ impl ACLEditor {
|
||||
|
||||
ui.horizontal(|ui| {
|
||||
if ui.button("Save").clicked() {
|
||||
// TODO: Save ACLs
|
||||
let path = self.path.clone();
|
||||
let acl = self.acl.clone();
|
||||
let mut acl = self.acl.clone();
|
||||
acl.set(ACLEntry(Qualifier::Mask, PermSet::all())); // Make sure mask is set!
|
||||
|
||||
self.save_thread_error = None;
|
||||
self.save_thread = Some(std::thread::spawn(move || {
|
||||
crate::helper::acl_writer::write_acl_recursive(path, acl)
|
||||
|
@ -87,6 +87,7 @@ impl Folder {
|
||||
.unwrap_or_else(|err| {
|
||||
eprintln!("Failed to read dir: {}", err);
|
||||
});
|
||||
children_data.sort_by_key(|folder| folder.name.clone());
|
||||
children.replace(children_data);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user