Redo search on editor load

This commit is contained in:
Mo Bitar
2019-06-03 17:15:35 -05:00
parent 0a816ec2f3
commit 44c0a336c2
4 changed files with 15 additions and 2 deletions

View File

@@ -70,9 +70,16 @@ class DesktopManager {
if(!this.isDesktop) {
return;
}
this.lastSearchedText = text;
this.searchHandler(text);
}
redoSearch() {
if(this.lastSearchedText) {
this.searchText(this.lastSearchedText);
}
}
deregisterUpdateObserver(observer) {
_.pull(this.updateObservers, observer);