mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
- Force lists refresh before initially displaying the window to avoid lag
- Removed session tweaking on exit since it does not have any effect
This commit is contained in:
parent
713c80451e
commit
87eee7029d
@ -231,6 +231,8 @@ 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();
|
||||||
}
|
}
|
||||||
|
@ -87,15 +87,6 @@ bittorrent::~bittorrent() {
|
|||||||
/*saveDHTEntry();
|
/*saveDHTEntry();
|
||||||
saveSessionState();
|
saveSessionState();
|
||||||
saveFastResumeData();*/
|
saveFastResumeData();*/
|
||||||
// Set Session settings
|
|
||||||
session_settings ss;
|
|
||||||
ss.tracker_receive_timeout = 1;
|
|
||||||
ss.stop_tracker_timeout = 1;
|
|
||||||
ss.tracker_completion_timeout = 1;
|
|
||||||
ss.piece_timeout = 1;
|
|
||||||
ss.peer_timeout = 1;
|
|
||||||
ss.urlseed_timeout = 1;
|
|
||||||
s->set_settings(ss);
|
|
||||||
// Disable directory scanning
|
// Disable directory scanning
|
||||||
disableDirectoryScanning();
|
disableDirectoryScanning();
|
||||||
// Delete our objects
|
// Delete our objects
|
||||||
|
@ -93,7 +93,7 @@ DEFINES += NDEBUG
|
|||||||
icon192
|
icon192
|
||||||
}
|
}
|
||||||
QMAKE_CXXFLAGS_RELEASE += -fwrapv
|
QMAKE_CXXFLAGS_RELEASE += -fwrapv
|
||||||
QMAKE_CXXFLAGS_DEBUG += -fwrapv
|
QMAKE_CXXFLAGS_DEBUG += -fwrapv -O0
|
||||||
CONFIG += link_pkgconfig
|
CONFIG += link_pkgconfig
|
||||||
PKGCONFIG += "libtorrent-rasterbar libcurl"
|
PKGCONFIG += "libtorrent-rasterbar libcurl"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user