From 7d1ea8755fef61d5ab1f073b386a7645259ac293 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Mon, 2 Dec 2024 07:38:09 +0900 Subject: [PATCH] [bugfix] Main Page: Top bar: Overlay. Fix showing indicator whether enabled or disabled. --- .../top_bar/right_side_components/RightSideComponents.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src-ui/app/main_page/main_section/top_bar/right_side_components/RightSideComponents.jsx b/src-ui/app/main_page/main_section/top_bar/right_side_components/RightSideComponents.jsx index 1024888e..01632d1d 100644 --- a/src-ui/app/main_page/main_section/top_bar/right_side_components/RightSideComponents.jsx +++ b/src-ui/app/main_page/main_section/top_bar/right_side_components/RightSideComponents.jsx @@ -5,7 +5,7 @@ import HelpSvg from "@images/help.svg?react"; import { useStore_OpenedQuickSetting } from "@store"; import { useIsSoftwareUpdateAvailable } from "@logics_common"; -import { useIsEnabledOverlaySmallLog, useEnableVrcMicMuteSync } from "@logics_configs"; +import { useIsEnabledOverlaySmallLog, useIsEnabledOverlayLargeLog, useEnableVrcMicMuteSync } from "@logics_configs"; import { OpenQuickSettingButton } from "./_buttons/OpenQuickSettingButton"; export const RightSideComponents = () => { @@ -30,15 +30,18 @@ const OpenOverlayQuickSetting = () => { // const { t } = useTranslation(); const { updateOpenedQuickSetting } = useStore_OpenedQuickSetting(); const { currentIsEnabledOverlaySmallLog } = useIsEnabledOverlaySmallLog(); + const { currentIsEnabledOverlayLargeLog } = useIsEnabledOverlayLargeLog(); const onClickFunction = () => { updateOpenedQuickSetting("overlay"); }; + const is_enable = currentIsEnabledOverlaySmallLog.data === true || currentIsEnabledOverlayLargeLog.data === true; + return ( );