From 165480cf8cfb1e44686c5b1e3922cb9f81e43f8e Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Tue, 23 Dec 2025 22:35:06 -0500 Subject: [PATCH] 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 --- main.go | 7 ------- upscale_module.go | 9 ++++++++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 12a2108..1da2baa 100644 --- a/main.go +++ b/main.go @@ -2784,13 +2784,6 @@ func (s *appState) showPlayerView() { 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() { s.stopPreview() s.lastModule = s.active diff --git a/upscale_module.go b/upscale_module.go index 2883f82..8530011 100644 --- a/upscale_module.go +++ b/upscale_module.go @@ -170,4 +170,11 @@ func sanitizeForPath(label string) string { 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...