Skip to content

Commit 8e4f6fc

Browse files
authored
Merge branch 'Yidadaa:main' into main
2 parents b83bbd5 + 9835206 commit 8e4f6fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/components/sidebar.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,13 @@ export function SideBar(props: { className?: string }) {
160160
icon={<MaskIcon />}
161161
text={shouldNarrow ? undefined : Locale.Mask.Name}
162162
className={styles["sidebar-bar-button"]}
163-
onClick={() => navigate(Path.NewChat, { state: { fromHome: true } })}
163+
onClick={() => {
164+
if (config.dontShowMaskSplashScreen !== true) {
165+
navigate(Path.NewChat, { state: { fromHome: true } });
166+
} else {
167+
navigate(Path.Masks, { state: { fromHome: true } });
168+
}
169+
}}
164170
shadow
165171
/>
166172
<IconButton

0 commit comments

Comments
 (0)