Skip to content

Commit

Permalink
Fix incompatible config version
Browse files Browse the repository at this point in the history
Fixes: #97
  • Loading branch information
sayanarijit committed Apr 23, 2021
1 parent 36c2c9c commit b7a7638
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 4 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion src/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: v0.5.5
version: v0.5.6
general:
show_hidden: false
read_only: false
Expand Down

0 comments on commit b7a7638

Please sign in to comment.