too much warnings when connection is unstable

This commit is contained in:
MathieuG-P
2022-12-30 23:36:02 +01:00
parent 74aa8defae
commit 1e26c366f8
@@ -52,7 +52,7 @@ export class BsDownloaderService{
this.ipcService.watch<string>("bs-download.[SteamID]").pipe(filter(r => r.success && !!r.data)).subscribe(response => this.authService.setSteamID(response.data));
this.ipcService.watch<string>("bs-download.[Warning]").pipe(filter(v => !!v && !!v.data), distinctUntilChanged(), throttleTime(1000)).subscribe(warning => {
this.ipcService.watch<string>("bs-download.[Warning]").pipe(filter(v => !!v && !!v.data), distinctUntilChanged(), throttleTime(10_000)).subscribe(warning => {
this.notificationService.notifyWarning({title: "notifications.types.warning", desc: `notifications.bs-download.warnings.msg.${warning.data}`});
});