git ssb

16+

Dominic / patchbay



Commit 57003379961d045ad830d7f296c7d85d38366021

better setting names

Anders Rune Jensen committed on 9/1/2017, 9:38:24 AM
Parent: 31a6b451195783f711ecd29057d9dc3ea60f92aa

Files changed

app/html/app.jschanged
app/html/app.jsView
@@ -62,18 +62,18 @@
6262 window.addEventListener('resize', function(e){
6363 var wc = electron.remote.getCurrentWebContents()
6464 wc && wc.getZoomFactor((zf) => {
6565 api.settings.sync.set({
66- zoomFactor: zf,
67- bounds: electron.remote.getCurrentWindow().getBounds()
66 + 'electron-zoomFactor': zf,
67 + 'electron-windowBounds': electron.remote.getCurrentWindow().getBounds()
6868 })
6969 })
7070 })
7171
72- var zoomFactor = api.settings.sync.get('zoom')
72 + var zoomFactor = api.settings.sync.get('electron-zoomFactor')
7373 if (zoomFactor)
7474 electron.remote.getCurrentWebContents().setZoomFactor(zoomFactor)
75- var bounds = api.settings.sync.get('bounds')
75 + var bounds = api.settings.sync.get('electron-windowBounds')
7676 if (bounds)
7777 electron.remote.getCurrentWindow().setBounds(bounds)
7878
7979 return App

Built with git-ssb-web