diff --git a/src/renderer/features/settings/components/advanced/advanced-tab.tsx b/src/renderer/features/settings/components/advanced/advanced-tab.tsx
index 3affb216..d4016b28 100644
--- a/src/renderer/features/settings/components/advanced/advanced-tab.tsx
+++ b/src/renderer/features/settings/components/advanced/advanced-tab.tsx
@@ -1,9 +1,11 @@
import { StylesSettings } from '/@/renderer/features/settings/components/advanced/styles-settings';
+import { UpdateSettings } from '/@/renderer/features/settings/components/window/update-settings';
import { Stack } from '/@/shared/components/stack/stack';
export const AdvancedTab = () => {
return (
+
);
diff --git a/src/renderer/features/settings/components/window/update-settings.tsx b/src/renderer/features/settings/components/window/update-settings.tsx
index 8be829f1..623318ea 100644
--- a/src/renderer/features/settings/components/window/update-settings.tsx
+++ b/src/renderer/features/settings/components/window/update-settings.tsx
@@ -10,7 +10,6 @@ import { Select } from '/@/shared/components/select/select';
import { Switch } from '/@/shared/components/switch/switch';
const localSettings = isElectron() ? window.api.localSettings : null;
-const utils = isElectron() ? window.api.utils : null;
export const UpdateSettings = () => {
const { t } = useTranslation();
@@ -37,7 +36,9 @@ export const UpdateSettings = () => {
value: 'beta',
},
]}
- defaultValue={'latest'}
+ defaultValue={
+ (localSettings?.get('release_channel') as string | undefined) || 'latest'
+ }
onChange={(value) => {
if (!value) return;
localSettings?.set('release_channel', value);
@@ -48,7 +49,6 @@ export const UpdateSettings = () => {
},
});
}}
- value={settings.releaseChannel}
/>
),
description: t('setting.releaseChannel', {
@@ -85,5 +85,5 @@ export const UpdateSettings = () => {
},
];
- return ;
+ return ;
};
diff --git a/src/renderer/features/settings/components/window/window-tab.tsx b/src/renderer/features/settings/components/window/window-tab.tsx
index 415bb9ca..a8617078 100644
--- a/src/renderer/features/settings/components/window/window-tab.tsx
+++ b/src/renderer/features/settings/components/window/window-tab.tsx
@@ -2,7 +2,6 @@ import isElectron from 'is-electron';
import { DiscordSettings } from '/@/renderer/features/settings/components/window/discord-settings';
import { PasswordSettings } from '/@/renderer/features/settings/components/window/password-settings';
-import { UpdateSettings } from '/@/renderer/features/settings/components/window/update-settings';
import { WindowSettings } from '/@/renderer/features/settings/components/window/window-settings';
import { Stack } from '/@/shared/components/stack/stack';
@@ -13,7 +12,6 @@ export const WindowTab = () => {
-
{utils?.isLinux() && (
<>