Skip to content

WinUIBackend: Store callbacks in subclasses instead of global hashmaps #190

Open
@stackotter

Description

@stackotter

At the moment, WinUIBackend stores callbacks such as button click handlers in backend-wide hashmaps (keyed by object identifiers). This should be replaced with the technique that all other backends use; i.e. subclassing backend widgets to add stored callback properties.

I've been putting this refactor off for a while because my Windows development machine used to take 45 minutes to clean build WinUIBackend, and refactoring would've required multiple clean builds, because changes that caused the backend class to get resized were causing crashes for some incremental building related reason. My new desktop can clean build WinUIBackend in 10 minutes so I don't have any excuses anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions