Răsfoiți Sursa

fix: restore file in release mode

Jonathan Kelley 5 luni în urmă
părinte
comite
6c907b1c20
1 a modificat fișierele cu 0 adăugiri și 1 ștergeri
  1. 0 1
      packages/desktop/src/app.rs

+ 0 - 1
packages/desktop/src/app.rs

@@ -592,7 +592,6 @@ fn hide_last_window(window: &Window) {
 }
 
 /// Return the location of a tempfile with our window state in it such that we can restore it later
-#[cfg(debug_assertions)]
 fn restore_file() -> std::path::PathBuf {
     /// Get the name of the program or default to "dioxus" so we can hash it
     fn get_prog_name_or_default() -> Option<String> {