mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-07 05:19:53 -06:00
fix(touchbar): hide read-only button after editing
This commit is contained in:
@@ -23,7 +23,6 @@ export default class EditButton extends OnClickButtonWidget {
|
||||
this.noteContext.viewScope.readOnlyTemporarilyDisabled = true;
|
||||
appContext.triggerEvent("readOnlyTemporarilyDisabled", { noteContext: this.noteContext });
|
||||
}
|
||||
this.refresh();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -68,6 +67,10 @@ export default class EditButton extends OnClickButtonWidget {
|
||||
}
|
||||
}
|
||||
|
||||
readOnlyTemporarilyDisabledEvent() {
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
async noteTypeMimeChangedEvent({ noteId }: { noteId: string }): Promise<void> {
|
||||
if (this.isNote(noteId)) {
|
||||
await this.refresh();
|
||||
|
||||
Reference in New Issue
Block a user