summaryrefslogtreecommitdiff
path: root/internal/service
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-01 12:40:30 +0300
committerPaul Buetow <paul@buetow.org>2026-05-01 12:40:30 +0300
commit27dbaf2b2d5895a091d04aa1c852abb91a619e2d (patch)
tree846ba964ee6f0fba52ccb2b1750d44b21c454efb /internal/service
parentbadc2543eaa319657ecc97453fbdca58679ecb87 (diff)
Minimalist UI: hide all elements until activated; add help modal and keyboard shortcuts
- Redesign UI to be invisible by default: only header + '?' button shown - Press m to show sidebar, t for toolbar, / for search, ? for help - Add help modal with all keyboard shortcuts - Fix scanner to skip corrupt/unprobeable files instead of aborting - Fix scanner to skip thumbnail errors instead of aborting - Fix rescan to use background context so it completes after HTTP response - Rename project from KISS Media Player to Player
Diffstat (limited to 'internal/service')
-rw-r--r--internal/service/admin.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/service/admin.go b/internal/service/admin.go
index afccc78..f16037a 100644
--- a/internal/service/admin.go
+++ b/internal/service/admin.go
@@ -39,7 +39,8 @@ func (s *adminService) TriggerRescan(ctx context.Context) error {
if s.scanner == nil {
return fmt.Errorf("scanner not configured")
}
- if err := s.scanner.Scan(ctx, s.mediaRoot); err != nil {
+ // Use a background context so the scan isn't canceled when the HTTP request finishes.
+ if err := s.scanner.Scan(context.Background(), s.mediaRoot); err != nil {
return fmt.Errorf("scan failed: %w", err)
}
return nil