Skip to content

JsonSettingsWidgets.py- Simplified monitoring state and improve file operations #12910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Hilyxx
Copy link
Contributor

@Hilyxx Hilyxx commented May 30, 2025

  • Remove the monitor pause/resume system and replace it with _is_internal_update flag. Simplified monitoring state
  • Atomic file operations using temporary files
  • Safe file replacement with os.replace
  • Proper file syncing with os.fsync

These changes introduce :

  • Reduced system overhead
  • Immediate response to changes
  • Better error handling
  • Fix ColorChooser widget issue with real time UI update in the xlet settings.
    ( Colors are not updated in the interface if a 'reset button' is implemented to reset the default values.
    The window must be closed and reopened to update the interface due to the high timeout value (2000)

- Remove the monitor pause/resume system and replaced it with _is_internal_update flag. Simplified monitoring state
- Atomic file operations using temporary files
- Safe file replacement with os.replace
- Proper file syncing with os.fsync

These changes introduce :
- Reduced system overhead
- Immediate response to changes
- Better error handling
- Fix CoolerChooser widget issue with real time update in UI in xlet-settings
@Hilyxx Hilyxx changed the title Simplified monitoring state and improve file operations JsonSettingsWidgets.py- Simplified monitoring state and improve file operations May 31, 2025
Hilyxx added 2 commits June 1, 2025 19:22
Improved data management with cleanup of temporary files in the event of an error.
@Hilyxx Hilyxx marked this pull request as draft June 9, 2025 13:02
@Hilyxx Hilyxx marked this pull request as ready for review June 9, 2025 13:12
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