mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
- BUGFIX: title bar is now reset when "Display speed in title" is disabled
This commit is contained in:
parent
f75501f781
commit
0a3bb0cfcd
1 changed files with 6 additions and 1 deletions
|
@ -791,7 +791,12 @@ void GUI::processDownloadedFiles(QString path, QString url) {
|
||||||
void GUI::configureSession(bool deleteOptions) {
|
void GUI::configureSession(bool deleteOptions) {
|
||||||
qDebug("Configuring session");
|
qDebug("Configuring session");
|
||||||
// General
|
// General
|
||||||
displaySpeedInTitle = options->speedInTitleBar();
|
bool new_displaySpeedInTitle = options->speedInTitleBar();
|
||||||
|
if(!new_displaySpeedInTitle && new_displaySpeedInTitle != displaySpeedInTitle) {
|
||||||
|
// Reset title
|
||||||
|
setWindowTitle(tr("qBittorrent %1", "e.g: qBittorrent v0.x").arg(QString::fromUtf8(VERSION)));
|
||||||
|
}
|
||||||
|
displaySpeedInTitle = new_displaySpeedInTitle;
|
||||||
unsigned int new_refreshInterval = options->getRefreshInterval();
|
unsigned int new_refreshInterval = options->getRefreshInterval();
|
||||||
if(refreshInterval != new_refreshInterval) {
|
if(refreshInterval != new_refreshInterval) {
|
||||||
refreshInterval = new_refreshInterval;
|
refreshInterval = new_refreshInterval;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue