File tree Expand file tree Collapse file tree
crates/fresh-editor/src/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1724,7 +1724,11 @@ impl Editor {
17241724 ///
17251725 /// This is a transient internal redirect — it deliberately does NOT
17261726 /// fire `active_window_changed` hooks (unlike `set_active_window`).
1727- fn with_active_window < R > ( & mut self , id : fresh_core:: WindowId , f : impl FnOnce ( & mut Self ) -> R ) -> R {
1727+ fn with_active_window < R > (
1728+ & mut self ,
1729+ id : fresh_core:: WindowId ,
1730+ f : impl FnOnce ( & mut Self ) -> R ,
1731+ ) -> R {
17281732 let prev = self . active_window ;
17291733 self . active_window = id;
17301734 let result = f ( self ) ;
@@ -1738,7 +1742,10 @@ impl Editor {
17381742 }
17391743
17401744 /// Restore a specific window's workspace from disk.
1741- pub fn restore_workspace_for ( & mut self , id : fresh_core:: WindowId ) -> Result < bool , WorkspaceError > {
1745+ pub fn restore_workspace_for (
1746+ & mut self ,
1747+ id : fresh_core:: WindowId ,
1748+ ) -> Result < bool , WorkspaceError > {
17421749 self . with_active_window ( id, |e| e. try_restore_workspace ( ) )
17431750 }
17441751
You can’t perform that action at this time.
0 commit comments