Skip to content

Commit

Permalink
Ensure config save is flush()'d
Browse files Browse the repository at this point in the history
  • Loading branch information
nullstalgia committed Oct 2, 2024
1 parent b541329 commit abdccbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ impl Settings {
source: e,
})?;

file.flush()?;

Ok(())
}
pub fn get_log_level(&self) -> LevelFilter {
Expand Down
2 changes: 2 additions & 0 deletions src/vrcx/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ impl VrcxStartup {
self.startup_path.as_ref()
}

// These shortcuts apparently trigger: [lnk/lib.rs:355] The ExtraData length is invalid.
// However, all the data *we* read is before that section, so *we're* probably okay, and Windows hasn't complained *yet.*
pub fn create_shortcut(&self) -> Result<(), AppError> {
let startup_path = self
.startup_path
Expand Down

0 comments on commit abdccbd

Please sign in to comment.