mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
Merge branch 'master' into feat/702-respect-system-proxy-windows
This commit is contained in:
@@ -42,7 +42,6 @@ export function LaunchSlide({ version }: Props) {
|
||||
const versionDownloading = useObservable(() => bsDownloader.downloadingVersion$);
|
||||
const [activeLaunchMods, setActiveLaunchMods] = useState<LaunchMod[]>(configService.get("launch-mods") ?? []);
|
||||
const [pinnedLaunchMods, setPinnedLaunchMods] = useState<LaunchMod[]>(configService.get("pinned-launch-mods" as DefaultConfigKey) ?? []);
|
||||
const [launchModItems, setLaunchModItems] = useState<LaunchModItemProps[]>([]);
|
||||
|
||||
const versionRunning = useObservable(() => bsLauncherService.versionRunning$);
|
||||
|
||||
@@ -70,7 +69,8 @@ export function LaunchSlide({ version }: Props) {
|
||||
? setPinnedLaunchMods(prev => [...prev, launchMod])
|
||||
: setPinnedLaunchMods(prev => prev.filter(mod => mod !== launchMod));
|
||||
|
||||
useEffect(() => {
|
||||
const launchModItems = useMemo<LaunchModItemProps[]>(() => {
|
||||
|
||||
let protonLogsPath: string[] = [];
|
||||
if (window.electron.platform === "linux") {
|
||||
protonLogsPath = version.steam
|
||||
@@ -78,7 +78,7 @@ export function LaunchSlide({ version }: Props) {
|
||||
: ["BSInstances", version.name, "Logs"];
|
||||
}
|
||||
|
||||
setLaunchModItems(() => [
|
||||
return [
|
||||
{
|
||||
id: LaunchMods.OCULUS,
|
||||
icon: OculusIcon,
|
||||
@@ -142,7 +142,7 @@ export function LaunchSlide({ version }: Props) {
|
||||
onChange: (checked) => toggleActiveLaunchMod(checked, LaunchMods.PROTON_LOGS),
|
||||
onPinChange: (pinned) => togglePinnedLaunchMod(pinned, LaunchMods.PROTON_LOGS),
|
||||
},
|
||||
]);
|
||||
]
|
||||
}, [activeLaunchMods, pinnedLaunchMods, version]);
|
||||
|
||||
const launch = async () => {
|
||||
|
||||
Reference in New Issue
Block a user