fix: make it possible to cancel the selecting of folder when getting nhentai favorites
This commit is contained in:
parent
995101ebec
commit
02df7e739a
|
@ -26,6 +26,10 @@ export class NhentaiIpcController implements IIpcController {
|
||||||
title: this.translator.t('Select torrent file save location'),
|
title: this.translator.t('Select torrent file save location'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (result.canceled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const favoritesStream = await this.nhentaiApi.getFavorites();
|
const favoritesStream = await this.nhentaiApi.getFavorites();
|
||||||
|
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
|
|
Loading…
Reference in New Issue