Skip to content

Commit

Permalink
- fixed an issue that could freeze the launcher (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyusung4698 committed Sep 19, 2020
1 parent 9fff770 commit c13969f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

## 1.0.11 (2020-09-17)

- added heist item types at the market
- added heist filter group at the market
- updated the external link behaviour to skip in game notification
- fixed an issue that could freeze the launcher (#826)
- fixed an issue with too long stats at the market window (#814)
- fixed an issue using the slider at the settings window (#815)

Expand Down
8 changes: 4 additions & 4 deletions src/app/core/odk/ow-game-listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class OWGameListener {

if (update.resolutionChanged) {
if (this.delegate.onGameResolutionChanged) {
this.delegate.onGameResolutionChanged(update.gameInfo);
this.delegate.onGameResolutionChanged({...update.gameInfo});
}
}

Expand All @@ -35,11 +35,11 @@ export class OWGameListener {

if (update.gameInfo.isRunning) {
if (this.delegate.onGameStarted) {
this.delegate.onGameStarted(update.gameInfo);
this.delegate.onGameStarted({...update.gameInfo});
}
} else {
if (this.delegate.onGameEnded) {
this.delegate.onGameEnded(update.gameInfo);
this.delegate.onGameEnded({...update.gameInfo});
}
}
}
Expand All @@ -51,7 +51,7 @@ export class OWGameListener {

if (info.isRunning) {
if (this.delegate.onGameStarted) {
this.delegate.onGameStarted(info);
this.delegate.onGameStarted({...info});
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ export class BackgroundWindowComponent implements OnInit, OnDestroy {
this.shouldQuit = false;
this.launcherWindow.close();

const { width, height } = info;
forkJoin([
this.annotationWindow.open(info.width, info.height),
this.notificationWindow.open(info.width, info.height)
this.annotationWindow.open(width, height),
this.notificationWindow.open(width, height)
]).pipe(
mergeMap(() => this.events.start(false)),
).subscribe(result => {
Expand Down Expand Up @@ -196,7 +197,8 @@ export class BackgroundWindowComponent implements OnInit, OnDestroy {
if (info?.classId !== OWGameClassId.PathOfExile) {
return;
}
this.notificationWindow.resize(info.width, info.height).subscribe();
const { width, height } = info;
this.notificationWindow.resize(width, height).subscribe();
}

private onStateChange(event: WindowStateChangedEvent): void {
Expand Down

0 comments on commit c13969f

Please sign in to comment.