followed instructions
This commit is contained in:
parent
511f181e8b
commit
4320990497
|
@ -45,12 +45,11 @@ fn main() -> Result<(), eframe::Error> {
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
;
|
|
||||||
// Attempt to load previous state
|
// Attempt to load previous state
|
||||||
let app_state: tools::AppState = if Path::new(SAVE_PATH).exists() {
|
let app_state: tools::AppState = if Path::new(SAVE_PATH).exists() {
|
||||||
app_state = tools::load_state(SAVE_PATH).expect("Failed to load the save")
|
tools::load_state(SAVE_PATH).expect("Failed to load the save")
|
||||||
} else {
|
} else {
|
||||||
app_state = tools::AppState {tabs: vec![], theme: 0,}
|
tools::AppState {tabs: vec![], theme: 0,}
|
||||||
};
|
};
|
||||||
|
|
||||||
eframe::run_native(
|
eframe::run_native(
|
||||||
|
|
Loading…
Reference in a new issue