Skip to content

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
@mtwebster
Copy link
Member

Hi, please rebase - I refactored JSONSettingsHandler slightly in 5fd5748 (mainly the file monitor stuff).

@mtwebster mtwebster added the Blocked Needs rebase, changes, or discussion label Nov 16, 2025
@mtwebster mtwebster changed the title JsonSettingsWidgets.py- Simplified monitoring state and improve file operations [WIP] JsonSettingsWidgets.py- Simplified monitoring state and improve file operations Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Blocked Needs rebase, changes, or discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants