rework storage paths a bit

This commit is contained in:
2025-05-13 09:40:45 +01:00
parent ef0b6de6ba
commit 9dbfbc4419
4 changed files with 16 additions and 17 deletions
+2 -3
View File
@@ -3,7 +3,7 @@ use crate::{
app::{App, WINDOW_SIZE},
tools,
},
util::{consts::APP_STORAGE_PATH, persistent_state::PersistentState, win},
util::{consts::path, persistent_state::PersistentState, win},
};
use eframe::egui;
use std::{
@@ -13,11 +13,10 @@ use std::{
};
fn panic_hook(panic_info: &std::panic::PanicHookInfo<'_>) {
let log_path = APP_STORAGE_PATH.join("panic.log");
let mut file = File::options()
.create(true)
.append(true)
.open(log_path)
.open(path::APP_ERROR.as_path())
.unwrap();
let timestamp = SystemTime::now()
.duration_since(UNIX_EPOCH)