Add a setting (off by default) for showing all rooms in home

Fixes #107

@LogN review
This commit is contained in:
Henry Hiles 2026-10-03 01:15:11 -04:00
commit 3875c3a14a
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
5 changed files with 52 additions and 9 deletions

View file

@ -93,6 +93,23 @@ class SettingsSectionsController
: null,
),
),
.new(
title: "All Rooms In Home",
description: "Show all rooms in home, instead of just ones that aren't in spaces",
icon: Icons.home,
builder: (title, description, icon) => SwitchListTile(
title: Text(title),
subtitle: Text(description),
secondary: Icon(icon),
value: settings.showAllInHome,
onChanged: Platform.isLinux
? (value) => ref
.watch(SettingsController.provider.notifier)
.set(settings.copyWith(showAllInHome: value))
.onError(showError)
: null,
),
),
]),
),
]),