gui settings: truncate file
This commit is contained in:
parent
a151fe3703
commit
915bb18caa
@ -47,6 +47,7 @@ impl Settings {
|
||||
|
||||
let mut settings_file = OpenOptions::new()
|
||||
.write(true)
|
||||
.truncate(true)
|
||||
.open(path)
|
||||
.map_err(|e| SettingsError::WritingFile(e.to_string()))?;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user