Fix multiple search calls on startup

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/3/head
trivernis 3 years ago
parent 570a2e1b78
commit 72b2f68784
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -73,7 +73,6 @@ export class RepositoriesTabComponent implements OnInit, AfterViewInit {
await this.runRepositoryStartupTasks(dialogContext);
dialogContext.message.next("Restoring previous tabs...");
await this.repoService.loadRepositories();
await this.stateService.loadState();
dialogContext.dialog.close(true);
} catch (err: any) {
this.errorBroker.showError(err);

@ -70,7 +70,6 @@ export class FileSearchComponent implements AfterViewChecked, OnInit {
});
this.state.sortKeys.subscribe(s => this.sortExpression = s);
this.applyStatusFromFilters();
await this.searchForFiles();
this.needsScroll = true;
this.assignDisplayedFilters();
}

Loading…
Cancel
Save