Leonid Nikitin b24155caf6
Refactor application structure and initialize core components
I decided to rewrite the program taking into account the experience gained.
2025-06-06 14:50:16 +05:00

17 lines
426 B
Go

package controller
import (
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/internal/application/setting"
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/internal/gui/view"
)
func (c *controller) startWithError(err error) {
languages := c.app.GetSetting().GetLanguages()
content := view.StartWithError(err, languages, func(lang setting.Lang) {
_ = setting.ChangeLang(lang)
c.startWithError(err)
})
c.window.SetContent(content)
}