forked from Nexus/nexus
add dynamic hinting and latching for PMPs
This commit is contained in:
parent
225497030e
commit
c786344bf2
1 changed files with 120 additions and 37 deletions
|
|
@ -467,6 +467,21 @@ class SettingsSectionsController
|
|||
),
|
||||
),
|
||||
if (settings.subprofiles) ...[
|
||||
.new(
|
||||
title: "Latch Triggered Subprofiles",
|
||||
description: "After you send a message with a subprofile's trigger, keep sending as it in that room until you choose another.",
|
||||
icon: Icons.push_pin,
|
||||
builder: (title, description, icon) => SwitchListTile(
|
||||
title: Text(title),
|
||||
subtitle: Text(description),
|
||||
secondary: Icon(icon),
|
||||
value: settings.latchSubprofiles,
|
||||
onChanged: (value) => ref
|
||||
.read(SettingsController.provider.notifier)
|
||||
.set(settings.copyWith(latchSubprofiles: value))
|
||||
.onError(showError),
|
||||
),
|
||||
),
|
||||
if (subprofiles.profiles.isNotEmpty)
|
||||
.new(
|
||||
title: "Default Subprofile",
|
||||
|
|
|
|||
Loading…
Reference in a new issue