@@ -72,9 +77,9 @@
-
+
-
+
Auto start with system:
Auto apply on launch:
@@ -104,7 +109,15 @@
-
+
+
+
+
+
diff --git a/js/app.js b/js/app.js
index 079ae60..e084fea 100644
--- a/js/app.js
+++ b/js/app.js
@@ -11,6 +11,7 @@ ready(function(){
displayOptionDescription();
recreateShortcut();
updatePresetList();
+ checkForNewRelease();
document.isStarting = false;
settings.set('settings', {
...settings.get('settings'),
diff --git a/js/methods.js b/js/methods.js
index df7b647..05483e7 100644
--- a/js/methods.js
+++ b/js/methods.js
@@ -449,3 +449,24 @@ function presetDeletion(presetName) {
notification('success', `The preset ${presetName} has been deleted.`);
updatePresetList();
}
+
+/**
+ * Will check for new release.
+ */
+function checkForNewRelease() {
+ var request = new XMLHttpRequest();
+ const version = require('./package.json').version;
+
+ request.open('GET', 'https://gitlab.com/api/v4/projects/11046417/releases', true);
+
+ request.onload = function() {
+ if (this.status >= 200 && this.status < 400) {
+ var resp = JSON.parse(this.response);
+ if (resp[0].tag_name !== version) {
+ notification('primary', "A new vesion is available, please check the release tab.");
+ }
+ }
+ };
+
+ request.send();
+}