EmmaTellblom / Mensinator

MIT License
38 stars 11 forks source link

Change SettingsDialog from Printing Settings Dynamically to Static #97

Open EmmaTellblom opened 1 month ago

EmmaTellblom commented 1 month ago

Title

Change SettingsDialog from Printing Settings Dynamically to Static

Description

Currently, the SettingsDialog uses a dynamic method to print settings from the database based on groupID. This approach has proven to be confusing and has led to issues, such as forgetting to add translations for specific settings like "protect screen." To simplify management and avoid such issues, we propose switching to a static method for handling settings.

Problem

Proposed Solution

Steps to Implement

  1. Update SettingsDialog: Modify the SettingsDialog to handle settings in a static manner.
  2. Remove Dynamic Logic: Remove or refactor the existing code that relies on dynamic groupID handling.
  3. Update Translations: Ensure that all necessary translations are added and correctly displayed with the static settings approach.
  4. Test Changes: Thoroughly test the updated SettingsDialog to ensure all settings are correctly displayed and managed.
  5. Documentation: Update any relevant documentation to reflect the changes in how settings are handled.

Acceptance Criteria

Additional Notes

Please review and provide feedback or additional suggestions for the proposed changes.