refactored many events to use wails bindings, reducing boilerplate
This commit is contained in:
1 parent
baa4644ece
commit
cf144bf0dd
20 files changed
+1044
-716
No files matched your search
@@ -130,10 +130,9 @@ func NewQueue(logger *slog.Logger, db *database.DB) *Queue {
|
||||
}
|
||||
}
|
||||
|
||||
// SetContext sets the Wails runtime context and registers event handlers.
|
||||
// SetContext sets the Wails runtime context for event emission.
|
||||
func (q *Queue) SetContext(ctx context.Context) {
|
||||
q.ctx = ctx
|
||||
q.registerEventHandlers()
|
||||
}
|
||||
|
||||
// SetPlayer provides the queue with a reference to the player for auto-advance.
|
||||
|
||||
Reference in new issue
Block a user