Skip to content

Conversation

@kdroidFilter
Copy link
Owner

Summary

This pull request focuses on cleaning up and refactoring the TrayApp implementation to improve maintainability, enhance platform-specific logic, and refine dialog state management.

Changes

  • Removed the redundant invisible DialogWindow definition and implementation to streamline the codebase.
  • Introduced platform-specific TrayAppImplLinux and TrayAppImplOriginal classes for better code separation and clarity.
  • Refined dialog visibility and positioning logic across Windows, macOS, and KDE environments.
  • Enhanced comments, removed legacy documentation, and deprecated unused parameters.
  • Improved dialog state handling to ensure more consistent behavior and reduced race conditions.

Impact

  • Improves maintainability, readability, and clarity of the codebase.
  • Offers better support and consistent dialog positioning for KDE and other desktop environments.
  • No functionality changes expected that negatively affect current behaviors.

- Detect Linux desktop environment and adjust positioning logic specifically for KDE.
- Pre-calculate and update window position before showing dialog to ensure correct placement.
- Removed deprecated parameters and adjusted function signatures.
- Simplified color filter and image rendering logic across overloads.
- Cleaned up and consolidated visibility/positioning behaviors for better consistency.
- Enhanced inline comments and removed redundant legacy documentation.
- Improved platform-specific code and streamlined dialog state handling.
- Introduced `TrayAppImplLinux` and `TrayAppImplOriginal` for improved maintainability.
- Consolidated positioning and visibility logic for macOS/Windows and Linux platforms.
- Enhanced comments and added clarity to platform-specific behavior.
- Improved dialog state management, reducing race conditions and ensuring consistent behavior across platforms.
The redundant invisible `DialogWindow` implementation was removed to clean up the code. This change does not affect functionality but improves maintainability and readability.
- Eliminated unused code for maintaining a cleaner and more maintainable codebase.
- Updated the remaining `DialogWindow` logic for explicit dismissal requests.
@kdroidFilter kdroidFilter merged commit 2726544 into master Oct 4, 2025
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.

2 participants