mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Option to show console when external program is run
Windows only. Closes #9592
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user