fix(electron): set client border style to false by default on windows (#3960)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Sarvesh Kumar.A
2023-08-27 01:56:48 +05:30
committed by GitHub
parent 54607aed6f
commit 118165bf72
7 changed files with 25 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ export const DeleteLeaveWorkspace = ({
onClick={() => {
setShowDelete(true);
}}
testId="delete-workspace-button"
data-testid="delete-workspace-button"
>
<ArrowRightSmallIcon />
</SettingRow>

View File

@@ -81,6 +81,7 @@ export const AppearanceSettings = () => {
const t = useAFFiNEI18N();
const [appSettings, setAppSettings] = useAppSetting();
const changeSwitch = useCallback(
(key: keyof AppSetting, checked: boolean) => {
setAppSettings({ [key]: checked });
@@ -131,6 +132,7 @@ export const AppearanceSettings = () => {
desc={t[
'com.affine.settings.appearance.border-style-description'
]()}
data-testid="client-border-style-trigger"
>
<Switch
checked={appSettings.clientBorder}