Permalink
Browse files

Load config always, not only when you open settings

  • Loading branch information...
hifi committed Sep 17, 2011
1 parent 1316204 commit adca386aac108ac1dd20e1c7ff1b4e0df6d49616
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main.c
View
@@ -74,6 +74,8 @@ DWORD WINAPI cncnet_connect(int ctx)
CenterWindow(hwnd_status);
ShowWindow(hwnd_status, SW_SHOW);
+ config_load();
+
/* give time to open settings */
if (WaitForSingleObject(open_settings, 0) != WAIT_OBJECT_0)
{
@@ -95,7 +97,6 @@ DWORD WINAPI cncnet_connect(int ctx)
{
CenterWindow(hwnd_settings);
ShowWindow(hwnd_status, SW_HIDE);
- config_load();
ShowWindow(hwnd_settings, SW_SHOW);
return 0;
}

0 comments on commit adca386

Please sign in to comment.