This commit resolves three critical issues: 1. **Fyne Threading Error on Startup**: Fixed by improving setContent() to check the initComplete flag. During initialization, setContent() calls SetContent() directly since we're on the main thread. After initialization, it safely marshals calls via app.Driver().DoFromGoroutine(). 2. **Queue Persisting Between Sessions**: Fixed by removing queue persistence. The shutdown() function no longer saves the queue to disk, ensuring a clean slate for each new app session. 3. **Queue Auto-Processing**: Fixed by making the queue start in 'paused' state. Users must explicitly click 'Process Queue' to start batch conversion. Queue methods PauseProcessing() and ResumeProcessing() control the paused state. Changes: - main.go: Added initComplete flag to appState, improved setContent() logic, disabled queue persistence in shutdown() - queue/queue.go: Added paused field to Queue struct, initialize paused=true, added PauseProcessing()/ResumeProcessing() methods - ui/queueview.go: Added UI controls for queue processing and clearing |
||
|---|---|---|
| .. | ||
| logging | ||
| modules | ||
| player | ||
| queue | ||
| ui | ||
| utils | ||