From b7a7638401363f5f71996063e8dff26fd328e480 Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Fri, 23 Apr 2021 10:58:40 +0530 Subject: [PATCH] Fix incompatible config version Fixes: https://github.com/sayanarijit/xplr/issues/97 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/config.rs | 5 ++++- src/config.yml | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fb68e922..b7c89df2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1630,7 +1630,7 @@ dependencies = [ [[package]] name = "xplr" -version = "0.5.5" +version = "0.5.6" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index dc85a4e7..3bc2e36a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xplr" -version = "0.5.5" # Update config.yml, config.rs and default.nix +version = "0.5.6" # Update config.yml, config.rs and default.nix authors = ["Arijit Basu "] edition = "2018" description = "A hackable, minimal, fast TUI file explorer" diff --git a/src/config.rs b/src/config.rs index 1af72749..b3b76242 100644 --- a/src/config.rs +++ b/src/config.rs @@ -665,6 +665,8 @@ impl Config { pub fn is_compatible(&self) -> Result { let result = match self.parsed_version()? { + (0, 5, 6) => true, + (0, 5, 5) => true, (0, 5, 4) => true, (0, 5, 3) => true, (0, 5, 2) => true, @@ -678,7 +680,8 @@ impl Config { pub fn upgrade_notification(&self) -> Result> { let result = match self.parsed_version()? { - (0, 5, 5) => None, + (0, 5, 6) => None, + (0, 5, 5) => Some("App version updated. Significant reduction in CPU usage"), (0, 5, 4) => Some("App version updated. Significant reduction in CPU usage"), (0, 5, 3) => Some("App version updated. Fixed exit on permission denied"), (0, 5, 2) => Some("App version updated. Now pwd is synced with your terminal session"), diff --git a/src/config.yml b/src/config.yml index 39985c7a..fd9cf02d 100644 --- a/src/config.yml +++ b/src/config.yml @@ -1,4 +1,4 @@ -version: v0.5.5 +version: v0.5.6 general: show_hidden: false read_only: false