microsoft / winfile

Original Windows File Manager (winfile) with enhancements
MIT License
6.75k stars 698 forks source link

Open command line windows with settings of topmost saved window #442

Closed malxau-msft closed 1 month ago

malxau-msft commented 1 month ago

This is to address #440 .

Winfile saves settings associated with each window. Many of these settings are not global in nature, they are per-window. When requesting a specific directory on the command line, the previous code would therefore revert to defaults. This change uses the settings of the topmost window that had previously been saved, which is the behavior that would happen if a new window were created from a saved workspace.

At the same time though, the disconnect between saved workspace and a specific directory is still very pronounced. Because opening winfile with a specific directory will not save settings automatically, there is still plenty of scope for confusing behavior.