Remove bbolt database dependency
Replaced bbolt-based database handling with Fyne built-in preferences for storing application settings. Deleted migration logic, database initialization, and error handling related to bbolt, simplifying the codebase and reducing external dependencies.
This commit is contained in:
@@ -61,9 +61,9 @@ func (h ConvertorHandler) MainConvertor() {
|
||||
}
|
||||
|
||||
func (h ConvertorHandler) FfPathSelection() {
|
||||
ffmpeg, _ := h.convertorRepository.GetPathFfmpeg()
|
||||
ffprobe, _ := h.convertorRepository.GetPathFfprobe()
|
||||
ffplay, _ := h.convertorRepository.GetPathFfplay()
|
||||
ffmpeg := h.convertorRepository.GetPathFfmpeg()
|
||||
ffprobe := h.convertorRepository.GetPathFfprobe()
|
||||
ffplay := h.convertorRepository.GetPathFfplay()
|
||||
h.convertorView.SelectFFPath(ffmpeg, ffprobe, ffplay, h.saveSettingFFPath, h.MainConvertor, h.downloadFFmpeg)
|
||||
}
|
||||
|
||||
@@ -122,9 +122,9 @@ func (h ConvertorHandler) checkingFFPathUtilities() bool {
|
||||
if ffplayChecking == false {
|
||||
continue
|
||||
}
|
||||
_, _ = h.convertorRepository.SavePathFfmpeg(item.FFmpeg)
|
||||
_, _ = h.convertorRepository.SavePathFfprobe(item.FFprobe)
|
||||
_, _ = h.convertorRepository.SavePathFfplay(item.FFplay)
|
||||
_ = h.convertorRepository.SavePathFfmpeg(item.FFmpeg)
|
||||
_ = h.convertorRepository.SavePathFfprobe(item.FFprobe)
|
||||
_ = h.convertorRepository.SavePathFfplay(item.FFplay)
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -156,9 +156,9 @@ func (h ConvertorHandler) saveSettingFFPath(ffmpegPath string, ffprobePath strin
|
||||
return errors.New(errorText)
|
||||
}
|
||||
|
||||
_, _ = h.convertorRepository.SavePathFfmpeg(ffmpegPath)
|
||||
_, _ = h.convertorRepository.SavePathFfprobe(ffprobePath)
|
||||
_, _ = h.convertorRepository.SavePathFfplay(ffplayPath)
|
||||
_ = h.convertorRepository.SavePathFfmpeg(ffmpegPath)
|
||||
_ = h.convertorRepository.SavePathFfprobe(ffprobePath)
|
||||
_ = h.convertorRepository.SavePathFfplay(ffplayPath)
|
||||
|
||||
h.MainConvertor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user