mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
refactor vpn mode
This commit is contained in:
4
3rdparty/WinCommander.cpp
vendored
4
3rdparty/WinCommander.cpp
vendored
@@ -48,7 +48,7 @@ Returns the return value of the executed command
|
||||
uint WinCommander::runProcessElevated(const QString &path,
|
||||
const QStringList ¶meters,
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user