mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 09:13:08 -07:00
- Do not refresh lists when window is not visible (save cpu)
- Force list refresh on show Event to avoid lag before next UpdateList() timer call
This commit is contained in:
parent
941b8c8d2a
commit
8ed40cc856
2 changed files with 33 additions and 24 deletions
|
@ -160,7 +160,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
|
|||
void finishedTorrent(QTorrentHandle& h) const;
|
||||
void addedTorrent(QTorrentHandle& h) const;
|
||||
void checkedTorrent(QTorrentHandle& h) const;
|
||||
void updateLists();
|
||||
void updateLists(bool force=false);
|
||||
bool initWebUi(QString username, QString password, int port);
|
||||
void pauseTorrent(QString hash);
|
||||
void on_actionIncreasePriority_triggered();
|
||||
|
@ -181,6 +181,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
|
|||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *);
|
||||
void showEvent(QShowEvent *);
|
||||
bool event(QEvent * event);
|
||||
void displayRSSTab(bool enable);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue