mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
Merge overlays, move overlay to separate process (#44)
* refactor: merge two overlay offScreenBrowser into one * Electron support for shared overlay * Separate overlay into its own process * fix: invalid overlay texture size * Handle duplicate processes * Remove logging --------- Co-authored-by: pa <maplenagisa@gmail.com> Co-authored-by: rs189 <35667100+rs189@users.noreply.github.com>
This commit is contained in:
@@ -853,11 +853,11 @@ export const useFriendStore = defineStore('Friend', () => {
|
||||
reconnectWebSocket();
|
||||
}
|
||||
|
||||
function updateOnlineFriendCounter() {
|
||||
function updateOnlineFriendCounter(forceUpdate = false) {
|
||||
const onlineFriendCounts =
|
||||
vipFriends.value.length + onlineFriends.value.length;
|
||||
if (onlineFriendCounts !== onlineFriendCount.value) {
|
||||
AppApi.ExecuteVrFeedFunction(
|
||||
if (onlineFriendCounts !== onlineFriendCount.value || forceUpdate) {
|
||||
AppApi.ExecuteVrOverlayFunction(
|
||||
'updateOnlineFriendCount',
|
||||
`${onlineFriendCounts}`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user