diff --git a/app/main/launcher/launcher.js b/app/main/launcher/launcher.js
index 1ea4cdd1..0053760a 100644
--- a/app/main/launcher/launcher.js
+++ b/app/main/launcher/launcher.js
@@ -81,6 +81,14 @@ $(document).ready(()=>{
argv[i] = v
}
+ if (option.restart && v!=value && !wrapper.hasClass('restart')) {
+ wrapper.addClass('restart')
+ wrapper.append(`
The app must be restarted for this change to take effect.
`)
+ } else if (option.restart && wrapper.hasClass('restart')) {
+ wrapper.removeClass('restart')
+ wrapper.find('.restart-msg').remove()
+ }
+
if (!stop) $('input').not(input).trigger('change',true)
})
diff --git a/app/main/main.js b/app/main/main.js
index 7b87902a..4e3d184a 100644
--- a/app/main/main.js
+++ b/app/main/main.js
@@ -52,7 +52,7 @@ if (cli) {
launcher
app.on('ready',function(){
- launcher = require('./electron-window')({address:address, shortcuts:false, width:600, height:452})
+ launcher = require('./electron-window')({address:address, shortcuts:false, width:600, height:482})
})
ipcMain.on('start',function(e, options){
diff --git a/app/main/settings.js b/app/main/settings.js
index 2ab56433..8c59ef17 100644
--- a/app/main/settings.js
+++ b/app/main/settings.js
@@ -49,7 +49,7 @@ var options = {
true : 'examples can\'t be listed if --load is set'
}
},
- 'disable-vsync':{type:'boolean',describe:'disable gui\'s vertical synchronization', launcher: false}
+ 'disable-vsync':{type:'boolean',describe:'disable gui\'s vertical synchronization', restart: true}
}
diff --git a/resources/docs/getting-started.md b/resources/docs/getting-started.md
index 87ff7e38..26a14bc5 100644
--- a/resources/docs/getting-started.md
+++ b/resources/docs/getting-started.md
@@ -9,8 +9,6 @@ Prebuilt binaries for Linux, Windows and OS X can be found on the [release](http
Below are the available command-line switches. Note that when running without any command-line switch (ie from a file browser), a launcher window will spawn to help setting them.
-Note: `--disable-vsync` can only be enabled from a terminal.
-
```
Options:
diff --git a/src/browser/scss/style.scss b/src/browser/scss/style.scss
index 6770d2dc..d7164cb6 100644
--- a/src/browser/scss/style.scss
+++ b/src/browser/scss/style.scss
@@ -216,20 +216,24 @@ i {
color:var(--color-accent);
}
}
- .error-msg {
+ .error-msg, .restart-msg {
transition: height .25s;
height: 0rem;
white-space:normal;
padding: 0 4rem;
margin-left:1rem;
}
- &.error {
-
+ &.error, &.restart {
.error-msg {
height: 28rem;
line-height: 28rem;
background: rgba(red,0.25)
}
+ .restart-msg {
+ height: 28rem;
+ line-height: 28rem;
+ background: rgba(yellow,0.25)
+ }
}
}
.title {