fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
450 stars 10 forks source link

[Bug]: Tabs are closed when folder is unavailable #2187

Open Reyhn3 opened 3 months ago

Reyhn3 commented 3 months ago

Some of my repositories are located on a path that is not always available, e.g. network path, USB-drive, VeraCrypt-volume etc. When Fork starts and it cannot find the repository directory, the tab is closed. This means that every time I close Fork, I have to remember to select a tab of a repository that will be available the next time I start Fork. Otherwise I will loose all tabs that no longer are associated with an available path.

Reproduce: 1) Clone a repository into a directory on a path that can be unmounted, for example on a USB-stick. 2) In any workspace, open the repository. A tab will be created and the repository displayed. Leave this tab focused. 3) Close Fork. 4) Disconnect / unmount the repository path, e.g. remove the USB-stick. 5) Start Fork. 6) The tab has now been silently closed.

Expected Behavior: The tab remains, but is empty. When the directory is available again, Fork will reload the repository in its tab.

Goal of Change Request: To prevent losing workspace setup. I have multiple workspaces in my Fork setup (e.g. personal, work, public, default etc.). I have carefully opened repositories in each workspace, and arranged the tabs according to my liking. When Fork closes the tabs, I lose my workspace setup, and I must manually reopen all repositories and rearrange the tabs.