Skip to content

Conversation

@bjorkert
Copy link
Contributor

@bjorkert bjorkert commented Dec 5, 2023

This pull request introduces a new feature that dynamically updates the server text based on user preferences. Key changes include:

New Functionality:
Added updateServerText function in BGData.swift for dynamic text updates in the main view controller.

User Setting Integration:
Integrated a new user setting showAppName in GeneralSettingsViewController.swift and UserDefaults.swift for toggling the display of the app's name.

Enum Extension:
Extended GeneralSettingsChangeEnum in AppStateController.swift to include showAppNameChange.

UI and Logic Updates:
Updated MainViewController.swift to use the new updateServerText function and handle the showAppNameChange setting.

Immediate Effect of Toggle:
If showAppName is toggled on, it will be immediately reflected in the GUI. When toggled off, Nightscout or Dexcom will be shown as the server text after the next BG update, depending on the source used.

These changes enhance the user experience by allowing the display of the app name based on user preference and streamline the server text update process. The immediate effect of the toggle provides a responsive interface for the users.

@bjorkert bjorkert requested a review from marionbarker December 5, 2023 09:07
@marionbarker marionbarker merged commit fae22f5 into dev Dec 5, 2023
@marionbarker marionbarker deleted the show-name branch December 20, 2023 00:23
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.

3 participants