1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Add: Log in / Sign upの時にエラーが出たらAlertを表示する

Debug: Tray Icon, PopUpWindow, Menuがいつの間にか消える
This commit is contained in:
Rokt33r
2015-07-29 22:43:27 +09:00
parent 90c2ff7480
commit c6ef86cbbe
8 changed files with 194 additions and 34 deletions

View File

@@ -6,6 +6,9 @@ var Tray = require('tray')
require('crash-reporter').start()
var mainWindow = null
var appIcon = null
var menu = null
var popUpWindow = null
// app.on('window-all-closed', function () {
// if (process.platform !== 'darwin') app.quit()
@@ -15,11 +18,11 @@ app.on('ready', function () {
// menu start
var template = require('./modules/menu-template')
var menu = Menu.buildFromTemplate(template)
menu = Menu.buildFromTemplate(template)
Menu.setApplicationMenu(menu)
// menu end
var appIcon = new Tray(__dirname + '/tray-icon.png')
appIcon = new Tray(__dirname + '/tray-icon.png')
appIcon.setToolTip('This is my application.')
appIcon.on('clicked', function () {
if (mainWindow == null) {
@@ -38,7 +41,7 @@ app.on('ready', function () {
mainWindow.show()
})
var popUpWindow = new BrowserWindow({
popUpWindow = new BrowserWindow({
width: 600,
height: 400,
show: false,