Option to show console when external program is run

Windows only.
Closes #9592
This commit is contained in:
sledgehammer999 2019-12-15 17:08:49 +02:00
parent 4ae8e176dc
commit 8fa6e372a2
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
5 changed files with 59 additions and 1 deletions

View file

@ -804,6 +804,18 @@ void Preferences::setAutoRunProgram(const QString &program)
setValue("AutoRun/program", program);
}
#if defined(Q_OS_WIN) && (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
bool Preferences::isAutoRunConsoleEnabled() const
{
return value("AutoRun/ConsoleEnabled", false).toBool();
}
void Preferences::setAutoRunConsoleEnabled(const bool enabled)
{
setValue("AutoRun/ConsoleEnabled", enabled);
}
#endif
bool Preferences::shutdownWhenDownloadsComplete() const
{
return value("Preferences/Downloads/AutoShutDownOnCompletion", false).toBool();