refactor vpn mode

This commit is contained in:
arm64v8a
2023-05-01 20:28:14 +09:00
parent 79ef90f3bf
commit 50387db15e
24 changed files with 391 additions and 382 deletions

View File

@@ -48,7 +48,7 @@ Returns the return value of the executed command
uint WinCommander::runProcessElevated(const QString &path,
const QStringList &parameters,
const QString &workingDir,
bool hide, bool aWait) {
int nShow, bool aWait) {
uint result = 0;
#ifdef Q_OS_WIN
@@ -79,7 +79,7 @@ uint WinCommander::runProcessElevated(const QString &path,
shex.lpParameters = pszParameters;
shex.lpDirectory = pszDirectory;
// https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-showwindow
shex.nShow = hide ? SW_HIDE : SW_SHOWMINIMIZED;
shex.nShow = nShow;
ShellExecuteEx(&shex);
if (shex.hProcess)