improvements

This commit is contained in:
zadam 2022-12-03 21:11:49 +01:00
parent 56e01046c8
commit cd60ad4267
3 changed files with 11 additions and 7 deletions

View File

@ -50,8 +50,8 @@
"express-partial-content": "1.0.2", "express-partial-content": "1.0.2",
"express-rate-limit": "6.7.0", "express-rate-limit": "6.7.0",
"express-session": "1.17.3", "express-session": "1.17.3",
"fs-extra": "10.1.0", "fs-extra": "11.1.0",
"helmet": "6.0.0", "helmet": "6.0.1",
"html": "1.0.0", "html": "1.0.0",
"html2plaintext": "2.1.4", "html2plaintext": "2.1.4",
"http-proxy-agent": "5.0.0", "http-proxy-agent": "5.0.0",
@ -65,7 +65,7 @@
"jsdom": "20.0.3", "jsdom": "20.0.3",
"mime-types": "2.1.35", "mime-types": "2.1.35",
"multer": "1.4.5-lts.1", "multer": "1.4.5-lts.1",
"node-abi": "3.28.0", "node-abi": "3.30.0",
"normalize-strings": "1.1.1", "normalize-strings": "1.1.1",
"open": "8.4.0", "open": "8.4.0",
"rand-token": "1.0.1", "rand-token": "1.0.1",

View File

@ -7,6 +7,10 @@ export default class AbstractLauncher extends OnClickButtonWidget {
/** @type {NoteShort} */ /** @type {NoteShort} */
this.launcherNote = launcherNote; this.launcherNote = launcherNote;
for (const label of launcherNote.getOwnedLabels('keyboardShortcut')) {
this.bindNoteShortcutHandler(label);
}
} }
launch() { launch() {

View File

@ -61,9 +61,9 @@ export default class LauncherContainer extends FlexContainer {
} }
entitiesReloadedEvent({loadResults}) { entitiesReloadedEvent({loadResults}) {
if (loadResults.getNoteIds().find(noteId => froca.notes[noteId]?.isLaunchBarConfig()) if (loadResults.getBranches().find(branch => branch.parentNoteId.startsWith("lb_"))) {
|| loadResults.getBranches().find(branch => branch.parentNoteId.startsWith("lb_")) // changes in note placement requires reload of all launchers, all other changes are handled by individual
|| loadResults.getAttributes().find(attr => froca.notes[attr.noteId]?.isLaunchBarConfig())) { // launchers
this.load(); this.load();
} }
} }