소스 검색

fix: restore file in release mode

Jonathan Kelley 5 달 전
부모
커밋
6c907b1c20
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  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> {