Skip to content

Commit

Permalink
Remove solace warning (fixed in intiface 2.6.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
SenkyDragon committed Oct 14, 2024
1 parent 4b1f187 commit a3f9517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
11 changes: 1 addition & 10 deletions src/frontend/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,7 @@ import AdvancedConfig from "./AdvancedConfig";
import logoPath from '../../icons/ogb-logo.png';

export default function Home() {
const [solaceFound,setSolaceFound] = useState(false);
return <div style={{display: 'flex', flexDirection: 'column', height: '100%'}}>
{
solaceFound &&
<div style={{backgroundColor: "#500", padding: "5px", textAlign: "center"}}>
Lovense Solace detected. An intiface 2.6.1+ bug causes solace to vibrate unexpectedly.<br/>
Try downgrading to Intiface 2.6.0 if possible if you have issues.<br/>
<a href="https://discord.com/channels/353303527587708932/1289446133982171138" target="_blank">Bug report on the intiface discord</a>.
</div>
}

<div style={{padding: '5px'}}>
<h3 style={{textAlign: 'center'}}>Welcome to OscGoesBrrr!</h3>
Expand All @@ -35,7 +26,7 @@ export default function Home() {
<div style={{display: 'flex', flex: 1}}>
<div style={{display: 'flex', flexDirection: 'column', flex: 1, margin: '5px', textAlign: 'center'}}>
<h3>Intiface Status</h3>
<StatusBox style={{flex: 1}} getCmd="bioStatus:get" onSolaceFound={()=>setSolaceFound(true)} />
<StatusBox style={{flex: 1}} getCmd="bioStatus:get" />
</div>
<div style={{display: 'flex', flexDirection: 'column', flex: 1, margin: '5px', textAlign: 'center'}}>
<h3>VRChat Status</h3>
Expand Down
6 changes: 2 additions & 4 deletions src/frontend/components/StatusBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import React, {useEffect, useRef, useState} from "react";
import {ipcRenderer} from "electron";
import {useLatest} from "react-use";

export default function StatusBox({getCmd, onSolaceFound, ...rest}: {
getCmd: string,
onSolaceFound?: ()=>void
export default function StatusBox({getCmd, ...rest}: {
getCmd: string
} & React.HTMLAttributes<HTMLTextAreaElement>) {
const [status,setStatus] = useState("");

Expand All @@ -15,7 +14,6 @@ export default function StatusBox({getCmd, onSolaceFound, ...rest}: {
const status = await ipcRenderer.invoke(getCmd);
if (destroyed) return;
setStatus(status);
if (onSolaceFound && status.includes('solace')) onSolaceFound();
timer = setTimeout(update, 100);
}
update();
Expand Down

0 comments on commit a3f9517

Please sign in to comment.