Commit Graph

10 Commits

Author SHA1 Message Date
c5626073c9 fix(menu_bar): Korrigiert den Tooltip für den Update-Button 2025-08-13 23:03:13 +02:00
864ad63bf8 new Gitea handling 2025-08-13 21:15:22 +02:00
eb893d197a Fix: Resolve TclError by managing animated icon clickability via bindings
- Replaced direct 'state' configuration on ttk.Frame (animated_icon_frame)
  with dynamic binding/unbinding of the '<Button-1>' event.
- This resolves the '_tkinter.TclError: unknown option "-state"' as ttk.Frame
  does not support the 'state' option.
- Ensures the animated icon is only clickable when an update is available,
  improving UI behavior and error handling.
2025-08-13 19:56:55 +02:00
b44c7b96d3 Fix: Improve update button and animation behavior in MenuBar
- Ensured the update toggle button remains active regardless of update status.
- Implemented state management for the animated update icon, making it clickable
  only when a new version is available.
- Corrected tooltip synchronization with the animated icon's state.
- Removed redundant update status check in the updater method, as UI state
  now controls interaction.
2025-08-13 19:52:51 +02:00
13f5f1f4fd Docs: Update MenuBar docstrings and remove unused comments
- Updated docstrings for __init__ and update_ui_for_update to reflect
  recent changes in arguments and logic, improving code documentation.
- Removed an unused commented-out line in the __init__ method signature.
2025-08-13 18:36:14 +02:00
fb794538d8 Refactor: Streamline MenuBar arguments and remove redundancy
- Replaced 'app_config' with 'app_version' to directly pass the application version,
  removing the need for 'app_config' as a whole.
- Reverted 'tooltips' argument and instead use 'msg_config' directly,
  aligning with existing project structure where 'Msg' class encapsulates
  both general strings (STR) and tooltips (TTIP).
- Updated all internal references to use 'self.app_version' and 'self.msg_config.TTIP'.
- This refactoring reduces argument redundancy and improves consistency with
  the project's configuration management.
2025-08-13 18:31:17 +02:00
3cf91ba58f Refactor: Externalize remaining MenuBar tooltips
- Replaced hardcoded tooltips for the log and about buttons with references
  to the 'tooltips' dictionary passed during MenuBar initialization.
- This further enhances the flexibility and translatability of the MenuBar.
2025-08-13 17:44:35 +02:00
ab14b4ffa3 Fix: Resolve NameError for Optional in MenuBar
- Added 'Optional' to the import list from the 'typing' module in menu_bar.py
  to resolve a NameError when using Optional as a type hint.
2025-08-13 17:26:07 +02:00
6fe090e9e5 Refactor: Update MenuBar for new GiteaUpdater and flexible tooltips
- Updated MenuBar to use the new GiteaUpdater class for update checks.
- Modified __init__ to accept gitea_api_url and a dictionary of tooltips,
  making the MenuBar more project-independent and translatable.
- Refactored check_for_updates and update_ui_for_update to handle the
  new GiteaUpdater's return values (new version string or None) and
  new states (DISABLED, ERROR).
- Improved updater logic to prevent execution when no updates are available
  or an error occurred.
- Corrected about dialog icon parameter.
2025-08-13 17:18:28 +02:00
dc51bf6f2c Reduced redundancy, logviewer fulll removed , add log_window and menu_bar 2025-08-12 22:44:49 +02:00