UPDATE: Add ldiff

This commit is contained in:
2025-08-25 18:12:13 +07:00
parent 99b9df1ce5
commit 6b222bfa70
45 changed files with 1700 additions and 535 deletions

View File

@@ -0,0 +1,22 @@
package appService
import (
"firefly-launcher/pkg/constant"
"time"
"github.com/wailsapp/wails/v3/pkg/application"
)
type AppService struct{}
func (a *AppService) GetCurrentLauncherVersion() (bool, string) {
return true, constant.CurrentLauncherVersion
}
func (a *AppService) CloseAppAfterTimeout(timeout int) (bool, string) {
go func() {
time.Sleep(time.Duration(timeout) * time.Second)
application.Get().Quit()
}()
return true, ""
}