mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
find widget readonly notes
This commit is contained in:
@@ -91,9 +91,10 @@ export default class FindInText {
|
||||
}
|
||||
}
|
||||
|
||||
async cleanup(totalFound, currentFound) {
|
||||
async findBoxClosed(totalFound, currentFound) {
|
||||
const textEditor = await this.getTextEditor();
|
||||
|
||||
if (totalFound > 0) {
|
||||
const textEditor = await this.getTextEditor();
|
||||
// Clear the markers and set the caret to the
|
||||
// current occurrence
|
||||
const model = textEditor.model;
|
||||
@@ -112,10 +113,7 @@ export default class FindInText {
|
||||
}
|
||||
|
||||
this.findResult = null;
|
||||
}
|
||||
|
||||
async close() {
|
||||
const textEditor = await this.getTextEditor();
|
||||
textEditor.focus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user