- 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:
Christophe Dumez 2008-12-26 21:41:09 +00:00
parent 941b8c8d2a
commit 8ed40cc856
2 changed files with 33 additions and 24 deletions

View file

@ -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);