nicolium: disable show self-reblogs switch when show reblogs is disabled

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-20 23:17:00 +01:00
parent c9adbe82c9
commit ab68f245c0

View File

@ -59,7 +59,7 @@ const useTimelineFiltersOptions = (
return useMemo(() => {
const items: Menu = [];
if (timeline == 'home') {
if (timeline === 'home') {
items.push({
text: intl.formatMessage(messages.showReblogs),
type: 'toggle',
@ -70,6 +70,7 @@ const useTimelineFiltersOptions = (
text: intl.formatMessage(messages.showSelfReblogs),
type: 'toggle',
checked: timelineSettings?.showSelfReblogs,
disabled: !timelineSettings?.showReblogs,
onChange: (checked) => changeSetting(['timelines', timeline, 'showSelfReblogs'], checked),
});
}