mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
feature<App>: supports to open repository from commandline directly
This commit is contained in:
parent
91f3f1263a
commit
5f2fe64e80
3 changed files with 16 additions and 3 deletions
|
@ -139,9 +139,14 @@ namespace SourceGit {
|
|||
}
|
||||
|
||||
// Show main window
|
||||
MainWindow = new UI.Launcher();
|
||||
if (e.Args.Length == 1) {
|
||||
MainWindow = new UI.Launcher(e.Args[0]);
|
||||
} else {
|
||||
MainWindow = new UI.Launcher(null);
|
||||
}
|
||||
MainWindow.Show();
|
||||
|
||||
|
||||
// Check for update.
|
||||
if (Setting.CheckUpdate && Setting.LastCheckUpdate != DateTime.Now.DayOfYear) {
|
||||
Setting.LastCheckUpdate = DateTime.Now.DayOfYear;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue