UPDATE: Fix bug

This commit is contained in:
2026-01-14 05:56:18 +07:00
parent 2349d6d360
commit e4f014e3b4
9 changed files with 1365 additions and 895 deletions

View File

@@ -22,7 +22,7 @@ func (h *DiffService) CheckTypeHDiff(patchPath string) (bool, string, string) {
if ok, err := sevenzip.IsFileIn7z(patchPath, "hdifffiles.txt"); err == nil && ok {
return true, "hdifffiles.txt", ""
}
if ok, err := sevenzip.IsFileIn7z(patchPath, "hdifffiles.txt"); err == nil && ok {
if ok, err := sevenzip.IsFileIn7z(patchPath, "hdifffiles.json"); err == nil && ok {
return true, "hdifffiles.json", ""
}
if ok, err := sevenzip.IsFileIn7z(patchPath, "hdiffmap.json"); err == nil && ok {

View File

@@ -15,7 +15,7 @@ import (
type FSService struct{}
func (f *FSService) PickFolder() (string, error) {
dialog := application.OpenFileDialog().
dialog := application.Get().Dialog.OpenFile().
CanChooseDirectories(true).
CanCreateDirectories(true).
ResolvesAliases(true)
@@ -31,7 +31,7 @@ func (f *FSService) PickFolder() (string, error) {
}
func (f *FSService) PickFile(filter string) (string, error) {
dialog := application.OpenFileDialog().
dialog := application.Get().Dialog.OpenFile().
CanChooseFiles(true).
ResolvesAliases(true)
if runtime.GOOS == "darwin" {