mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
Minor changes
This commit is contained in:
parent
322ec2efa1
commit
acc0d17e0f
@ -32,10 +32,6 @@ class BaseCommand {
|
|||||||
return this.compatibleUis().indexOf(ui) >= 0;
|
return this.compatibleUis().indexOf(ui) >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
aliases() {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
options() {
|
options() {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
BIN
ElectronClient/app/build/icons/16x16-dev.png
Normal file
BIN
ElectronClient/app/build/icons/16x16-dev.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 611 B |
Loading…
Reference in New Issue
Block a user