mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 13:42:48 +00:00
GUIで引数付きで起動してもファイルパスが設定されないことがあるのを修正
This commit is contained in:
parent
711810b985
commit
c522af6275
@ -1835,8 +1835,6 @@ void DialogEvent::Create(HWND hWnd, WPARAM wParam, LPARAM lParam, LPVOID lpData)
|
|||||||
|
|
||||||
SetDepthAndQuality(false);
|
SetDepthAndQuality(false);
|
||||||
|
|
||||||
if (isArgStartAuto) // 引数指定されたら自動で実行(フラグ設定時のみ)
|
|
||||||
{
|
|
||||||
int nArgs = 0;
|
int nArgs = 0;
|
||||||
LPTSTR *lplpszArgs;
|
LPTSTR *lplpszArgs;
|
||||||
lplpszArgs = CommandLineToArgvW(GetCommandLine(), &nArgs);
|
lplpszArgs = CommandLineToArgvW(GetCommandLine(), &nArgs);
|
||||||
@ -1858,14 +1856,15 @@ void DialogEvent::Create(HWND hWnd, WPARAM wParam, LPARAM lParam, LPVOID lpData)
|
|||||||
OnSetInputFilePath();
|
OnSetInputFilePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isArgStartAuto) // 引数指定されたら自動で実行(フラグ設定時のみ)
|
||||||
|
{
|
||||||
isCommandLineStart = true;
|
isCommandLineStart = true;
|
||||||
|
|
||||||
::PostMessage(GetDlgItem(dh, IDC_BUTTON_EXEC), BM_CLICK, 0, 0);
|
::PostMessage(GetDlgItem(dh, IDC_BUTTON_EXEC), BM_CLICK, 0, 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LocalFree(lplpszArgs);
|
LocalFree(lplpszArgs);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DialogEvent::Cancel(HWND hWnd, WPARAM wParam, LPARAM lParam, LPVOID lpData)
|
void DialogEvent::Cancel(HWND hWnd, WPARAM wParam, LPARAM lParam, LPVOID lpData)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user