clear cast interval when casting stops; naming

* fix ipc logs

* minWidth 425

So title "WebTorrent (BETA)" doesn't get cut off

* clear cast interval when casting stops; naming

Fix #300
This commit is contained in:
Feross Aboukhadijeh
2016-04-05 23:12:23 -07:00
committed by DC
parent 292898de9e
commit 8629fc956d
5 changed files with 35 additions and 30 deletions

View File

@@ -81,10 +81,10 @@ function init () {
if (name.startsWith('wt-')) {
if (e.sender.browserWindowOptions.title === 'webtorrent-hidden-window') {
windows.main.send(name, ...args)
log('webtorrent ipc: sent %s', name)
log('webtorrent: got %s', name)
} else {
windows.webtorrent.send(name, ...args)
log('webtorrent ipc: receieved %s', name)
log('webtorrent: sent %s', name)
}
return
}

View File

@@ -82,7 +82,7 @@ function createMainWindow () {
backgroundColor: '#282828',
darkTheme: true, // Forces dark theme (GTK+3)
icon: config.APP_ICON + '.png',
minWidth: 375,
minWidth: 425,
minHeight: 38 + (120 * 2), // header height + 2 torrents
show: false, // Hide window until DOM finishes loading
title: config.APP_WINDOW_TITLE,