Skip to content

Commit

Permalink
Enlarge account setting window, fix prompt on OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
ClumsyLee committed Oct 16, 2015
1 parent b678424 commit ffc3a03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function refresh() {

// FIXME: Looks ugly now.
function account_setting() {
var dialog = new BrowserWindow({width: 400, height: 220, resizable: true});
var dialog = new BrowserWindow({width: 500, height: 220, resizable: true});
dialog.loadUrl('file://' + __dirname + '/account_setting.html');
dialog.on('close', function () {
config = configure.load();
Expand Down Expand Up @@ -321,7 +321,9 @@ app.on('ready', function() {

// Prompt users to set account if they haven't.
if (!config.username)
notify('未设置帐号', '点击这里设置帐号\n或者稍后右键点击状态栏图标 > 账号设置');
notify('未设置帐号', '点击这里设置帐号\n或者稍后' +
(process.platform == 'darwin' ? '左' : '右') +
'键点击状态栏图标 > 账号设置');

refresh(); // First shot.

Expand Down

0 comments on commit ffc3a03

Please sign in to comment.