Add factory_reset Rust command
Tears down all per-user stores, clears credentials from keyring, then removes ~/.local/share/qbz/, ~/.cache/qbz/, and ~/.config/qbz/. Makes teardown_type_alias_state public for reuse.
This commit is contained in:
1 parent
2d94430c0a
commit
2c0dc66b17
4 files changed
+148
-1
No files matched your search
@@ -49,7 +49,7 @@ where
|
||||
}
|
||||
|
||||
/// Helper to teardown a type-alias state
|
||||
fn teardown_type_alias_state<S>(state: &Arc<Mutex<Option<S>>>) {
|
||||
pub fn teardown_type_alias_state<S>(state: &Arc<Mutex<Option<S>>>) {
|
||||
if let Ok(mut guard) = state.lock() {
|
||||
*guard = None;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user