mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 00:46:45 +00:00
fix(idle): maybe fix destructure issue #1684
This commit is contained in:
parent
f78219ea0a
commit
f9b15bef52
1 changed files with 3 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ import {
|
|||
} from './idle.actions';
|
||||
import {
|
||||
distinctUntilChanged,
|
||||
exhaustMap,
|
||||
filter,
|
||||
first,
|
||||
map,
|
||||
|
|
@ -144,7 +145,8 @@ export class IdleEffects {
|
|||
ofType(openIdleDialog),
|
||||
filter(() => !this._isDialogOpen),
|
||||
tap(() => (this._isDialogOpen = true)),
|
||||
switchMap(({ enabledSimpleStopWatchCounters, lastCurrentTaskId }) =>
|
||||
// use exhaustMap to prevent opening up multiple dialogs
|
||||
exhaustMap(({ enabledSimpleStopWatchCounters, lastCurrentTaskId }) =>
|
||||
this._matDialog
|
||||
.open(DialogIdleComponent, {
|
||||
restoreFocus: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue