Commit Graph

1152 Commits

Author SHA1 Message Date
Thomas Farstrike 4d058d7eb0 SettingActivity: fix textarea handling 2026-01-11 20:56:01 +01:00
Thomas Farstrike 80b2f98857 Wifi app: avoid absolute pixel values in layout 2026-01-11 20:45:46 +01:00
Thomas Farstrike f889657ec6 AppStore app: also refresh focus group 2026-01-10 21:30:05 +01:00
Thomas Farstrike cb9534890d Fix padding 2026-01-10 21:02:20 +01:00
Thomas Farstrike 6568d33013 refactor(appstore): extract DRY helpers and consolidate duplicated code
- Extract _apply_default_styles() helper to eliminate 12+ repeated widget style calls
- Extract _add_click_handler() helper to consolidate 6 repeated event registrations
- Consolidate backend config getters into single _get_backend_config() method
- Simplify badgehub_app_to_mpos_app() with safer .get() defaults instead of try-except
- Extract _cleanup_temp_file(), _update_progress(), _show_progress_bar(), _hide_progress_bar() helpers
- Refactor uninstall_app() and download_and_install() to use new progress helpers
- Use getattr() for cleaner attribute checking

Eliminates ~85 lines of duplicated logic while preserving all functionality,
comments, and debug prints. Improves maintainability and code clarity.
2026-01-10 20:49:25 +01:00
Thomas Farstrike 9b99243f27 AppStore app: move AppDetail to its own file and simplify 2026-01-10 19:35:55 +01:00
Thomas Farstrike b4d851baad AppStore app: use generic SettingActivity to configure backend 2026-01-10 19:00:14 +01:00
Thomas Farstrike 29d3e8a2b9 Promote setting_activity from app to framework 2026-01-10 08:45:45 +01:00
Thomas Farstrike d13e61112e Settings: improve activity_class hunting 2026-01-09 20:10:50 +01:00
Thomas Farstrike 7bd71eb04e Move SettingsActivity to its own file 2026-01-09 20:04:04 +01:00
Thomas Farstrike 580ba0d1dc AppStore app: hide non-functional settings button 2026-01-09 19:52:46 +01:00
Thomas Farstrike 6057674efe AppStore app: prepare for settings 2026-01-09 19:51:50 +01:00
Thomas Farstrike f34498cfcd view.py debugging 2026-01-09 19:45:25 +01:00
Thomas Farstrike cfc04f2fb7 Simplify bootloader.py 2026-01-09 19:45:09 +01:00
Thomas Farstrike 64bd7cf45c settings.py: prepare for generic SettingsActivity 2026-01-09 19:41:29 +01:00
Thomas Farstrike 736fd49e0f Print stacktrace for unhandled app exceptions 2026-01-09 17:59:00 +01:00
Thomas Farstrike eeabe1b20b Make "Power Off" button on desktop exit completely 2026-01-09 15:07:25 +01:00
Thomas Farstrike 304fa1a537 Improve robustness with custom exception that does not deinit() the TaskHandler 2026-01-09 12:03:33 +01:00
Thomas Farstrike c62b30b4d0 Improve robustness by catching unhandled app exceptions 2026-01-09 10:44:43 +01:00
Thomas Farstrike c7924e7ae7 Add wifi QR decoding 2026-01-06 15:19:58 +01:00
Thomas Farstrike 68d0ac572d Wifi app: add support for scanning wifi QR codes to "Add Network" 2026-01-06 13:48:01 +01:00
Thomas Farstrike 4cc6231c6e Simplify: don't rate-limit update_ui_threadsafe_if_foreground
This isn't used anywhere.
2026-01-04 21:51:45 +01:00
Thomas Farstrike fb5672bd86 Settings app: remove unused calibration_thread 2026-01-04 21:43:07 +01:00
Thomas Farstrike a3fc2b1638 OSUpdate: simplify thread safety 2026-01-04 21:41:25 +01:00
Thomas Farstrike ad5565c959 App framework: simplify MANIFEST.JSON
Make launcher, entrypoint and classname optional
by defaulting to "assets/main.py" with class "Main".
2026-01-04 21:30:07 +01:00