update player window title to torrent name (Windows, Linux)

This also moves all the state “diffing” for purposes of updating the
app’s window via Electron APIs into one function updateElectron().
This commit is contained in:
Feross Aboukhadijeh
2016-03-07 19:36:01 -08:00
parent 5171e1a7da
commit 8ab2a1415b
3 changed files with 28 additions and 9 deletions

View File

@@ -31,6 +31,7 @@ module.exports = {
duration: 1, /* seconds */
mouseStationarySince: 0 /* Unix time in ms */
},
prev: {}, /* used for state diffing in updateElectron() */
/* Saved state is read from and written to a file every time the app runs.
* It should be simple and minimal and must be JSON.