Skip to content

Commit 0850fbc

Browse files
add string[] args to MainForm
1 parent 67d05df commit 0850fbc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

FileSyncAppWin/MainForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ public partial class MainForm : Form
44
{
55
Thread consoleThread;
66

7-
public MainForm()
7+
public MainForm(string[] args)
88
{
99
InitializeComponent();
1010
this.FormClosing += (s, e) => { FileSyncApp.Program.keepRunning = false; consoleThread?.Join(10_000); };
1111
consoleThread = new Thread(() =>
1212
{
13-
FileSyncApp.Program.Main(null);
13+
FileSyncApp.Program.Main(args);
1414
});
1515
FileSyncApp.Program.JobsReady += (s, e) =>
1616
{

0 commit comments

Comments
 (0)