Skip to content

Gps toggle in settings#433

Merged
zjs81 merged 9 commits into
devfrom
gps-toggle-in-settings
May 8, 2026
Merged

Gps toggle in settings#433
zjs81 merged 9 commits into
devfrom
gps-toggle-in-settings

Conversation

@zjs81

@zjs81 zjs81 commented May 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

zjs81 and others added 6 commits April 14, 2026 21:39
- Updated _RepeaterStatusScreenState to load status after the first frame to avoid mid-build notifyListeners() calls.
- Removed unused _statusRequestedAt variable and adjusted _clockText() to use repeaterClockAtLogin for time display.
- Enhanced _SettingsScreenState with a GPS toggle switch that updates custom variables for GPS settings.
- Cleaned up RepeaterCommandService by removing redundant pending command checks and adjusted command ID generation.
- Removed jni plugin from generated_plugins.cmake for both Linux and Windows platforms.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zjs81

zjs81 commented May 8, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc3325ec46

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +314 to +317
value: connector.currentCustomVars?['gps'] == '1',
onChanged: (value) async {
await connector.setCustomVar(value ? 'gps:1' : 'gps:0');
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the GPS switch state in sync

In the new top-level GPS switch, value is driven entirely by connector.currentCustomVars, but setCustomVar() only sends the frame and starts/stops polling; it does not update currentCustomVars, notify listeners, or refresh the custom vars. When a user toggles GPS here, the switch rebuilds with the old value, so an initially-off switch keeps appearing off and every subsequent tap keeps sending gps:1 rather than allowing the user to turn it back off until some later device-info refresh happens.

Useful? React with 👍 / 👎.

zjs81 added 3 commits May 8, 2026 13:36
# Conflicts:
#	lib/l10n/app_bg.arb
#	lib/l10n/app_de.arb
#	lib/l10n/app_es.arb
#	lib/l10n/app_fr.arb
#	lib/l10n/app_hu.arb
#	lib/l10n/app_it.arb
#	lib/l10n/app_ja.arb
#	lib/l10n/app_ko.arb
#	lib/l10n/app_localizations_es.dart
#	lib/l10n/app_localizations_it.dart
#	lib/l10n/app_localizations_nl.dart
#	lib/l10n/app_localizations_pt.dart
#	lib/l10n/app_localizations_sv.dart
#	lib/l10n/app_localizations_uk.dart
#	lib/l10n/app_nl.arb
#	lib/l10n/app_pl.arb
#	lib/l10n/app_pt.arb
#	lib/l10n/app_ru.arb
#	lib/l10n/app_sk.arb
#	lib/l10n/app_sl.arb
#	lib/l10n/app_sv.arb
#	lib/l10n/app_uk.arb
#	lib/l10n/app_zh.arb
Reflect the set value immediately so UI bound to currentCustomVars
(e.g. the GPS toggle in settings) updates on tap rather than waiting
for a later device-info refresh.
@zjs81 zjs81 merged commit d4da34f into dev May 8, 2026
6 checks passed
@zjs81 zjs81 deleted the gps-toggle-in-settings branch May 8, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant