mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Match WebUI About page to GUI
This commit is contained in:
@@ -54,6 +54,7 @@
|
||||
#include "base/scanfoldersmodel.h"
|
||||
#include "base/torrentfileguard.h"
|
||||
#include "base/utils/fs.h"
|
||||
#include "base/utils/misc.h"
|
||||
#include "base/utils/net.h"
|
||||
#include "base/utils/password.h"
|
||||
#include "../webapplication.h"
|
||||
@@ -68,6 +69,18 @@ void AppController::versionAction()
|
||||
setResult(QBT_VERSION);
|
||||
}
|
||||
|
||||
void AppController::buildInfoAction()
|
||||
{
|
||||
const QJsonObject versions = {
|
||||
{"qt", QT_VERSION_STR},
|
||||
{"libtorrent", Utils::Misc::libtorrentVersionString()},
|
||||
{"boost", Utils::Misc::boostVersionString()},
|
||||
{"openssl", Utils::Misc::opensslVersionString()},
|
||||
{"bitness", (QT_POINTER_SIZE * 8)}
|
||||
};
|
||||
setResult(versions);
|
||||
}
|
||||
|
||||
void AppController::shutdownAction()
|
||||
{
|
||||
qDebug() << "Shutdown request from Web UI";
|
||||
|
||||
Reference in New Issue
Block a user