fix: memo thing

This commit is contained in:
Moyasee
2025-11-11 20:56:25 +02:00
parent ccecd8aa4c
commit e1c60c6e8f

View File

@@ -61,6 +61,21 @@ export function SettingsGeneral() {
const volumeUpdateTimeoutRef = useRef<NodeJS.Timeout>();
const achievementCustomNotificationPositionOptions = useMemo(() => {
return [
"top-left",
"top-center",
"top-right",
"bottom-left",
"bottom-center",
"bottom-right",
].map((position) => ({
key: position,
value: position,
label: t(position),
}));
}, [t]);
useEffect(() => {
window.electron.getDefaultDownloadsPath().then((path) => {
setDefaultDownloadsPath(path);