mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Option to show console when external program is run
Windows only. Closes #9592
This commit is contained in:
parent
4ae8e176dc
commit
8fa6e372a2
5 changed files with 59 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue