persist database salt and rework config loading
This commit is contained in:
1 parent
2371486f39
commit
a10510ed6e
9 files changed
+227
-76
No files matched your search
+1
-1
@@ -12,7 +12,7 @@ pub enum AppSession {
|
||||
|
||||
impl AppSession {
|
||||
pub fn load(config: &AppConfig) -> AppSession {
|
||||
if config.db_path.exists() {
|
||||
if config.db_path().exists() {
|
||||
AppSession::Locked
|
||||
} else {
|
||||
AppSession::Empty
|
||||
|
||||
Reference in new issue
Block a user