big clean, multi point touchstate, auto update check toggle, rm switchers, add state fn to scripts

This commit is contained in:
bordun 2020-03-15 19:14:08 +01:00
parent d776922b24
commit f797988c64
51 changed files with 735 additions and 3591 deletions

View file

@ -6,7 +6,7 @@ var terminal = require('./terminal')
DOM.get(document, '#osc-greeting-header')[0].appendChild(html`${window.PACKAGE.productName} <span class="version">v${window.PACKAGE.version}</span>`)
if (navigator.onLine) {
if (settings.remote.read('checkForUpdates') && navigator.onLine) {
var request = new XMLHttpRequest()
request.open('GET', 'https://api.github.com/repos/jean-emmanuel/open-stage-control/tags', true)

View file

@ -12,6 +12,7 @@ class Settings {
constructor() {
this.remote = settings
this.container = DOM.get('#osc-container')[0].appendChild(html`<osc-settings></osc-settings>`)
this.names = []
this.argv = {}

View file

@ -75,6 +75,14 @@ menu.append(new MenuItem({type: 'submenu' , label: 'Console', submenu: [
click: function(e){
terminal.autoSroll = e.checked
}
}),
new MenuItem({
label: 'Check for updates at startup',
type: 'checkbox',
checked: settings.remote.read('checkForUpdates'),
click: (e)=>{
settings.remote.write('checkForUpdates', e.checked)
}
})
]}))
menu.append(new MenuItem({