Open
Description
Describe the problem
So looking at the current implementation of the store plugin and the tray icon code, we basically manually sync a state and a resource in the app's resource table (path <-> resource_id
for the store plugin, tray_id <-> resource_id
for the tray icon), this is quite error prone and verbose to be honest
Describe the solution you'd like
It would be nice to have an API that manages these things together, so you can do something like let tray = app.resources_table().get_named("main")
Alternatives considered
No response
Additional context
No response