summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-08 08:17:16 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-08 08:17:16 +0100
commitf7bf9e6577249bc567808700fcd400c1a9745d18 (patch)
tree691c8062254322b67aa45a3adb46bb30ea8d2427
parent0d2e2c8a740ca944d432937643008f6220db37ab (diff)
FIX: encrypted are never shown as mounted
-rw-r--r--development.md3
-rw-r--r--src/cryptsetup.rs4
2 files changed, 4 insertions, 3 deletions
diff --git a/development.md b/development.md
index 32a60119..87310f56 100644
--- a/development.md
+++ b/development.md
@@ -605,6 +605,7 @@ New view: Tree ! Toggle with 't', fold with 'z'. Navigate normally.
- [ ] mount usb key - should be merged with mtp
- [ ] document filepicking (from my config etc.).
- [ ] avoid multiple refreshs if we edit files ourself
+- [x] FIX: encrypted are never shown as mounted
- [ ] Tree remade without recursion. Improve ram usage
- [x] FIX: folders are max depth hangs the app
- [x] FIX: rename renames the root path
@@ -617,8 +618,6 @@ New view: Tree ! Toggle with 't', fold with 'z'. Navigate normally.
- [x] FIX: enter a dir from normal mode shouldn't set mode tree
- [x] Use a generic trait for movements
- [x] FIX: first line position for tree
- - [ ] FIX: changing sortkind in tree mode dosn't change first line
- - [ ] FIX: copying/moving 0B files does nothing
- [ ] test everything
- [ ] refactor
- [x] document
diff --git a/src/cryptsetup.rs b/src/cryptsetup.rs
index 59b37c4e..261fa2a8 100644
--- a/src/cryptsetup.rs
+++ b/src/cryptsetup.rs
@@ -102,7 +102,9 @@ impl CryptoDevice {
}
pub fn mount_point(&self) -> Option<String> {
- System::new_with_specifics(RefreshKind::new().with_disks())
+ let mut system = System::new_with_specifics(RefreshKind::new().with_disks());
+ system.refresh_disks_list();
+ system
.disks()
.iter()
.map(|d| d.mount_point())