Fix incompatible config version

Fixes: https://github.com/sayanarijit/xplr/issues/97
This commit is contained in:
Arijit Basu 2021-04-23 10:58:40 +05:30 committed by Arijit Basu
parent 36c2c9cc2b
commit e9b5dfe478
4 changed files with 7 additions and 4 deletions

2
Cargo.lock generated
View File

@ -1630,7 +1630,7 @@ dependencies = [
[[package]]
name = "xplr"
version = "0.5.5"
version = "0.5.6"
dependencies = [
"anyhow",
"chrono",

View File

@ -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 <sayanarijit@gmail.com>"]
edition = "2018"
description = "A hackable, minimal, fast TUI file explorer"

View File

@ -665,6 +665,8 @@ impl Config {
pub fn is_compatible(&self) -> Result<bool> {
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<Option<&str>> {
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"),

View File

@ -1,4 +1,4 @@
version: v0.5.5
version: v0.5.6
general:
show_hidden: false
read_only: false