Merge pull request #1737 from akaustav/fix-about-window
Fix: Increase height of 'About' window
This commit is contained in:
@@ -15,7 +15,7 @@ function init () {
|
|||||||
backgroundColor: '#ECECEC',
|
backgroundColor: '#ECECEC',
|
||||||
center: true,
|
center: true,
|
||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
height: 170,
|
height: 250,
|
||||||
icon: getIconPath(),
|
icon: getIconPath(),
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
minimizable: false,
|
minimizable: false,
|
||||||
@@ -33,11 +33,12 @@ function init () {
|
|||||||
|
|
||||||
win.loadURL(config.WINDOW_ABOUT)
|
win.loadURL(config.WINDOW_ABOUT)
|
||||||
|
|
||||||
// No menu on the About window
|
|
||||||
win.setMenu(null)
|
|
||||||
|
|
||||||
win.once('ready-to-show', function () {
|
win.once('ready-to-show', function () {
|
||||||
win.show()
|
win.show()
|
||||||
|
// No menu on the About window
|
||||||
|
// Hack: BrowserWindow removeMenu method not working on electron@7
|
||||||
|
// https://github.com/electron/electron/issues/21088
|
||||||
|
win.setMenuBarVisibility(false)
|
||||||
})
|
})
|
||||||
|
|
||||||
win.once('closed', function () {
|
win.once('closed', function () {
|
||||||
|
|||||||
@@ -34,6 +34,6 @@
|
|||||||
(<script>document.write(require('webtorrent/package.json').version)</script>)
|
(<script>document.write(require('webtorrent/package.json').version)</script>)
|
||||||
(<script>document.write(process.arch === 'x64' ? '64-bit' : '32-bit')</script>)
|
(<script>document.write(process.arch === 'x64' ? '64-bit' : '32-bit')</script>)
|
||||||
</p>
|
</p>
|
||||||
<p><script>document.write(require('../config').APP_COPYRIGHT)</script></p>
|
<p><script>document.write(require('../build/config').APP_COPYRIGHT)</script></p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user