Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
filip131311 committed Dec 20, 2024
1 parent 70e7a33 commit d578079
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vscode-extension/src/project/deviceSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,15 +316,15 @@ export class DeviceSession implements Disposable {
}

public async changeDeviceSettings(settings: DeviceSettings): Promise<boolean> {
if (this.deviceSettings?.replaysEnabled !== settings.replaysEnabled) {
if (settings.replaysEnabled && !this.isLaunching) {
if (this.deviceSettings?.replaysEnabled !== settings.replaysEnabled && !this.isLaunching) {
if (settings.replaysEnabled) {
this.device.enableReplay();
} else {
this.device.disableReplays();
}
}
if (this.deviceSettings?.showTouches !== settings.showTouches) {
if (settings.showTouches && !this.isLaunching) {
if (this.deviceSettings?.showTouches !== settings.showTouches && !this.isLaunching) {
if (settings.showTouches) {
this.device.showTouches();
} else {
this.device.hideTouches();
Expand Down

0 comments on commit d578079

Please sign in to comment.