Hide Uptime from wrist feed

This commit is contained in:
Natsumi
2022-03-27 03:15:08 +13:00
parent cdfd759aa0
commit c1b31e1f73
2 changed files with 15 additions and 1 deletions

View File

@@ -11217,6 +11217,9 @@ speechSynthesis.getVoices();
$app.data.hideCpuUsageFromFeed = configRepository.getBool(
'VRCX_hideCpuUsageFromFeed'
);
$app.data.hideUptimeFromFeed = configRepository.getBool(
'VRCX_hideUptimeFromFeed'
);
$app.data.overlayNotifications = configRepository.getBool(
'VRCX_overlayNotifications'
);
@@ -11305,6 +11308,10 @@ speechSynthesis.getVoices();
'VRCX_hideCpuUsageFromFeed',
this.hideCpuUsageFromFeed
);
configRepository.setBool(
'VRCX_hideUptimeFromFeed',
this.hideUptimeFromFeed
);
configRepository.setBool(
'VRCX_overlayNotifications',
this.overlayNotifications
@@ -11842,6 +11849,10 @@ speechSynthesis.getVoices();
}
}
}
var onlineFor = '';
if (!this.hideUptimeFromFeed) {
onlineFor = API.currentUser.$online_for;
}
var lastLocation = {
date: this.lastLocation.date,
location: this.lastLocation.location,
@@ -11849,7 +11860,7 @@ speechSynthesis.getVoices();
playerList: Array.from(this.lastLocation.playerList.values()),
friendList: Array.from(this.lastLocation.friendList.values()),
progressPie,
onlineFor: API.currentUser.$online_for
onlineFor
};
var json = JSON.stringify(lastLocation);
AppApi.ExecuteVrFeedFunction('lastLocationUpdate', json);

View File

@@ -1072,6 +1072,9 @@ html
div.options-container-item
span.name Hide CPU Usage
el-switch(v-model="hideCpuUsageFromFeed" @change="saveOpenVROption" :disabled="!openVR || !overlayWrist")
div.options-container-item
span.name Hide Uptime
el-switch(v-model="hideUptimeFromFeed" @change="saveOpenVROption" :disabled="!openVR || !overlayWrist")
div.options-container-item
el-button(size="small" icon="el-icon-notebook-2" @click="showWristFeedFiltersDialog" :disabled="!openVR || !overlayWrist") Wrist Feed Filters
br