Closed seayxu closed 2 months ago
Restore windows
and the last time you shutdown this app with opened repository tabs, there will be no Welcome
page opened on startup. And after started, if you open a new tab, it will just replaced to the repository that specified by the commandline. It's very strange.
And it's not recommanded to do this in Views
. Instead, it should be implemented in ViewModels
.
Fixed crash without path, to implement this in View
is fast.
I've pushed my implementation for this feature.
The disadvantage of implementing in Views.Welcome
is that it will not work until you have a welcome page.
For example, this is the behavior with your PR:
https://github.com/sourcegit-scm/sourcegit/assets/4075673/f991af5f-08f8-4d24-ac2f-0b8aa2c28b70
supported accept repository path from cli