launcher: make it possible to set vsync from launcher by telling if the app must be restarted

This commit is contained in:
jean-emmanuel 2016-12-09 19:04:37 +01:00
parent 56ec3bc7d5
commit 9bdeb3a712
5 changed files with 17 additions and 7 deletions

View file

@ -81,6 +81,14 @@ $(document).ready(()=>{
argv[i] = v
}
if (option.restart && v!=value && !wrapper.hasClass('restart')) {
wrapper.addClass('restart')
wrapper.append(`<div class="restart-msg">The app must be restarted for this change to take effect.</div>`)
} else if (option.restart && wrapper.hasClass('restart')) {
wrapper.removeClass('restart')
wrapper.find('.restart-msg').remove()
}
if (!stop) $('input').not(input).trigger('change',true)
})