1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Minor changes

This commit is contained in:
Laurent Cozic 2018-02-19 18:36:31 +00:00
parent 322ec2efa1
commit acc0d17e0f
4 changed files with 2 additions and 9 deletions

View File

@ -32,10 +32,6 @@ class BaseCommand {
return this.compatibleUis().indexOf(ui) >= 0; return this.compatibleUis().indexOf(ui) >= 0;
} }
aliases() {
return [];
}
options() { options() {
return []; return [];
} }

View File

@ -14,10 +14,6 @@ class Command extends BaseCommand {
return _('Creates a new notebook.'); return _('Creates a new notebook.');
} }
aliases() {
return ['mkdir'];
}
async action(args) { async action(args) {
let folder = await Folder.save({ title: args['new-notebook'] }, { userSideValidation: true }); let folder = await Folder.save({ title: args['new-notebook'] }, { userSideValidation: true });
app().switchCurrentFolder(folder); app().switchCurrentFolder(folder);

View File

@ -132,7 +132,8 @@ class ElectronAppWrapper {
// Note: this must be called only after the "ready" event of the app has been dispatched // Note: this must be called only after the "ready" event of the app has been dispatched
createTray(contextMenu) { createTray(contextMenu) {
try { try {
this.tray_ = new Tray(this.buildDir() + '/icons/16x16.png') const iconFilename = this.env_ === 'dev' ? '16x16-dev.png' : '16x16.png';
this.tray_ = new Tray(this.buildDir() + '/icons/' + iconFilename)
this.tray_.setToolTip(this.electronApp_.getName()) this.tray_.setToolTip(this.electronApp_.getName())
this.tray_.setContextMenu(contextMenu) this.tray_.setContextMenu(contextMenu)

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B