Allow headless builds on Windows

Daemonizing is disabled because no direct equivalent exists in win32.
This commit is contained in:
knackebrot 2018-10-15 10:59:17 +02:00
parent d7ea9a5f55
commit c7b451b18f
3 changed files with 42 additions and 24 deletions

View file

@ -43,12 +43,12 @@ class QProcessEnvironment;
struct QBtCommandLineParameters
{
bool showHelp, relativeFastresumePaths, portableMode, skipChecking, sequential, firstLastPiecePriority;
#ifndef Q_OS_WIN
#if !defined(Q_OS_WIN) || defined(DISABLE_GUI)
bool showVersion;
#endif
#ifndef DISABLE_GUI
bool noSplash;
#else
#elif !defined(Q_OS_WIN)
bool shouldDaemonize;
#endif
int webUiPort;