mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Automatic update check with an opt out
Store the last version used, the next time we can check, and the decision if the user does or does not want these checks in the settings. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4ce3c1e8b8
commit
864c4ce94d
3 changed files with 56 additions and 10 deletions
|
@ -10,11 +10,14 @@ class UpdateManager : public QObject {
|
|||
Q_OBJECT
|
||||
public:
|
||||
explicit UpdateManager(QObject *parent = 0);
|
||||
void checkForUpdates();
|
||||
void checkForUpdates(bool automatic = false);
|
||||
|
||||
public
|
||||
slots:
|
||||
void requestReceived();
|
||||
|
||||
private:
|
||||
bool isAutomaticCheck;
|
||||
};
|
||||
|
||||
#endif // UPDATEMANAGER_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue