mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 14:57:52 +00:00
- This is not needed because a showEvent is raised anyway
This commit is contained in:
parent
f47b3be0be
commit
66874fbd2f
@ -231,8 +231,6 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
|
|||||||
QMainWindow::statusBar()->addPermanentWidget(upSpeedLbl);
|
QMainWindow::statusBar()->addPermanentWidget(upSpeedLbl);
|
||||||
QMainWindow::statusBar()->addPermanentWidget(statusSep4);
|
QMainWindow::statusBar()->addPermanentWidget(statusSep4);
|
||||||
QMainWindow::statusBar()->addPermanentWidget(ratioLbl);
|
QMainWindow::statusBar()->addPermanentWidget(ratioLbl);
|
||||||
// Force list update before showing
|
|
||||||
updateLists(true);
|
|
||||||
if(!settings.value(QString::fromUtf8("Preferences/General/StartMinimized"), false).toBool()) {
|
if(!settings.value(QString::fromUtf8("Preferences/General/StartMinimized"), false).toBool()) {
|
||||||
show();
|
show();
|
||||||
}
|
}
|
||||||
@ -1364,6 +1362,7 @@ void GUI::on_actionTorrent_Properties_triggered() {
|
|||||||
|
|
||||||
void GUI::updateLists(bool force) {
|
void GUI::updateLists(bool force) {
|
||||||
if(isVisible() || force) {
|
if(isVisible() || force) {
|
||||||
|
qDebug("Update LISTS");
|
||||||
// update global informations
|
// update global informations
|
||||||
dlSpeedLbl->setText(tr("DL: %1 KiB/s").arg(QString(QByteArray::number(BTSession->getPayloadDownloadRate()/1024., 'f', 1))));
|
dlSpeedLbl->setText(tr("DL: %1 KiB/s").arg(QString(QByteArray::number(BTSession->getPayloadDownloadRate()/1024., 'f', 1))));
|
||||||
upSpeedLbl->setText(tr("UP: %1 KiB/s").arg(QString(QByteArray::number(BTSession->getPayloadUploadRate()/1024., 'f', 1))));
|
upSpeedLbl->setText(tr("UP: %1 KiB/s").arg(QString(QByteArray::number(BTSession->getPayloadUploadRate()/1024., 'f', 1))));
|
||||||
|
Loading…
Reference in New Issue
Block a user