File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ pub fn poll_hotkey_event() -> Option<GlobalHotKeyEvent> {
195195 GlobalHotKeyEvent :: receiver ( ) . try_recv ( ) . ok ( )
196196}
197197
198-
199198#[ cfg( test) ]
200199mod tests {
201200 use super :: * ;
Original file line number Diff line number Diff line change 11use crate :: state:: HiddenWindow ;
2- use std:: path:: PathBuf ;
32use anyhow:: Result ;
3+ use std:: path:: PathBuf ;
44use windows:: Win32 :: Foundation :: { BOOL , HWND , LPARAM , TRUE } ;
55use windows:: Win32 :: UI :: WindowsAndMessaging :: * ;
66
@@ -206,14 +206,15 @@ pub fn current_exe_path() -> String {
206206 String :: from_utf16_lossy ( & buf[ ..end] )
207207}
208208
209-
210209// ── Crash recovery for hidden app windows ────────────────────────────────────
211210// When windows are hidden we record their handles to a small file. A clean
212211// restore deletes it; a crash leaves it, so the next launch (and the panic
213212// hook) can re-show anything that was stranded.
214213
215214fn recovery_path ( ) -> Option < PathBuf > {
216- crate :: config:: config_dir ( ) . ok ( ) . map ( |d| d. join ( "hidden_windows.json" ) )
215+ crate :: config:: config_dir ( )
216+ . ok ( )
217+ . map ( |d| d. join ( "hidden_windows.json" ) )
217218}
218219
219220// Save (or, when empty, delete) the recovery record of hidden windows.
You can’t perform that action at this time.
0 commit comments