fix: make it possible to cancel the selecting of folder when getting nhentai favorites

This commit is contained in:
Xymorot 2021-01-04 22:12:37 +01:00
parent 995101ebec
commit 02df7e739a
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ export class NhentaiIpcController implements IIpcController {
title: this.translator.t('Select torrent file save location'),
});
if (result.canceled) {
return;
}
const favoritesStream = await this.nhentaiApi.getFavorites();
return new Promise((resolve) => {