Skip to content

Commit

Permalink
fix: format config dir to absolute after the directory is created
Browse files Browse the repository at this point in the history
BREAKING CHANGE: force semantic release to do a major version bump
  • Loading branch information
lars-berger committed Sep 17, 2024
1 parent 82f29f2 commit 55b748e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/desktop/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ impl Config {
.path()
.resolve(".glzr/zebar", BaseDirectory::Home)
.context("Unable to get home directory.")?,
}
.to_absolute()?
.into();
};

let settings = Self::read_settings_or_init(app_handle, &config_dir)?;
let window_configs = Self::read_window_configs(&config_dir)?;
Expand All @@ -177,7 +175,7 @@ impl Config {

Ok(Self {
app_handle: app_handle.clone(),
config_dir,
config_dir: config_dir.to_absolute()?,
settings: Arc::new(Mutex::new(settings)),
window_configs: Arc::new(Mutex::new(window_configs)),
_settings_change_rx,
Expand Down

0 comments on commit 55b748e

Please sign in to comment.