- If you fail to load content try on a different timer (every 5 seconds by default). This fixes slow image loading at startup if you have a long timeout between pictures.
This commit is contained in:
@@ -22,6 +22,8 @@ private:
|
||||
unsigned int timeout;
|
||||
std::unique_ptr<ImageSelector>& selector;
|
||||
QTimer timer;
|
||||
const unsigned int timeoutNoContent = 5 * 1000; // 10 sec
|
||||
QTimer timerNoContent;
|
||||
};
|
||||
|
||||
#endif // IMAGESWITCHER_H
|
||||
|
||||
Reference in New Issue
Block a user