From 7a795843e8d4f04bffe04cf199f50b9c6a58b46c Mon Sep 17 00:00:00 2001 From: Natsumi Date: Fri, 18 Mar 2022 09:08:01 +1300 Subject: [PATCH] Desktop toast add back Desktop Mode/Outside VR --- html/src/app.js | 8 ++++---- html/src/index.pug | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index 9bb61c36..1bbbf347 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -4890,11 +4890,11 @@ speechSynthesis.getVoices(); var playDesktopToast = false; if ( this.desktopToast === 'Always' || - (this.desktopToast === 'Inside VR' && - !this.isGameNoVR && - this.isGameRunning) || + (this.desktopToast === 'Outside VR' && (this.isGameNoVR || !this.isGameRunning)) || + (this.desktopToast === 'Inside VR' && !this.isGameNoVR && this.isGameRunning) || (this.desktopToast === 'Game Closed' && !this.isGameRunning) || - (this.desktopToast === 'Game Running' && this.isGameRunning) + (this.desktopToast === 'Game Running' && this.isGameRunning) || + (this.desktopToast === 'Desktop Mode' && this.isGameNoVR && this.isGameRunning) ) { playDesktopToast = true; } diff --git a/html/src/index.pug b/html/src/index.pug index 88f6d0bf..a7669ac9 100644 --- a/html/src/index.pug +++ b/html/src/index.pug @@ -1091,7 +1091,9 @@ html br el-radio-group(v-model="desktopToast" @change="saveOpenVROption" size="mini") el-radio-button(label="Never") + el-radio-button(label="Desktop Mode") el-radio-button(label="Inside VR") + el-radio-button(label="Outside VR") el-radio-button(label="Game Closed") el-radio-button(label="Game Running") el-radio-button(label="Always")