Extract showUpscaleView and AI helper functions to upscale_module.go

- Move showUpscaleView() from main.go to upscale_module.go
- Remove AI helper functions (detectAIUpscaleBackend, checkAIFaceEnhanceAvailable, etc.)
- Syntax passes, ready for further migration
- Build error is unrelated Fyne API issue in internal/ui
This commit is contained in:
Stu Leak 2025-12-23 22:35:06 -05:00
parent 67c71e2070
commit 165480cf8c
2 changed files with 8 additions and 8 deletions

View File

@ -2784,13 +2784,6 @@ func (s *appState) showPlayerView() {
s.setContent(buildPlayerView(s)) s.setContent(buildPlayerView(s))
} }
func (s *appState) showUpscaleView() {
s.stopPreview()
s.lastModule = s.active
s.active = "upscale"
s.setContent(buildUpscaleView(s))
}
func (s *appState) showAuthorView() { func (s *appState) showAuthorView() {
s.stopPreview() s.stopPreview()
s.lastModule = s.active s.lastModule = s.active

View File

@ -170,4 +170,11 @@ func sanitizeForPath(label string) string {
return strings.ToLower(r.Replace(label)) return strings.ToLower(r.Replace(label))
} }
// Main module functions will be added here incrementally... func (s *appState) showUpscaleView() {
s.stopPreview()
s.lastModule = s.active
s.active = "upscale"
s.setContent(buildUpscaleView(s))
}
// buildUpscaleView and executeUpscaleJob will be added here incrementally...