big clean, multi point touchstate, auto update check toggle, rm switchers, add state fn to scripts
This commit is contained in:
parent
921f8008df
commit
444049b782
51 changed files with 735 additions and 3591 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 = {}
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue