Split state into temp and saved

Also stop using IPC to calculate window width

Add default torrents--the Blender Foundation videos--not displayed yet
This commit is contained in:
DC
2016-03-05 15:44:57 -08:00
parent c2b5f7a7bb
commit 5b383d3ed0
9 changed files with 618 additions and 72 deletions

View File

@@ -23,12 +23,12 @@ function Header (state, dispatch) {
function getTitle () {
if (process.platform === 'darwin') {
return hx`<div class="title">${state.view.title}</div>`
return hx`<div class="title">${state.temp.title}</div>`
}
}
function plusButton () {
if (state.view.url !== '/player') {
if (state.temp.url !== '/player') {
return hx`<i class="icon add" onclick=${onAddTorrent}>add</i>`
}
}