mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add "Check for updates" Feature
This patch adds a check for updates feature. It connects to http://subsurface.hohndel.org/updatecheck.html to check for any new versions. It then prompts the user with a download link if an update is available. Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5cec965cb7
commit
ede6a38bcf
6 changed files with 109 additions and 2 deletions
|
@ -28,6 +28,7 @@ class MainTab;
|
|||
class ProfileGraphicsView;
|
||||
class QWebView;
|
||||
class QSettings;
|
||||
class UpdateManager;
|
||||
|
||||
enum MainWindowTitleFormat {
|
||||
MWTF_DEFAULT,
|
||||
|
@ -121,6 +122,7 @@ slots:
|
|||
void on_actionAboutSubsurface_triggered();
|
||||
void on_actionUserManual_triggered();
|
||||
void on_actionDivePlanner_triggered();
|
||||
void on_action_Check_for_Updates_triggered();
|
||||
|
||||
void current_dive_changed(int divenr);
|
||||
void initialUiSetup();
|
||||
|
@ -171,6 +173,7 @@ private:
|
|||
QString lastUsedDir();
|
||||
void updateLastUsedDir(const QString &s);
|
||||
bool filesAsArguments;
|
||||
UpdateManager *updateManager;
|
||||
};
|
||||
|
||||
MainWindow *mainWindow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue