added github repository link
This commit is contained in:
@@ -2,5 +2,5 @@
|
|||||||
Icon = "Icon.png"
|
Icon = "Icon.png"
|
||||||
Name = "TurtleSilicon"
|
Name = "TurtleSilicon"
|
||||||
ID = "com.tairasu.turtlesilicon"
|
ID = "com.tairasu.turtlesilicon"
|
||||||
Version = "1.0.3"
|
Version = "1.0.5"
|
||||||
Build = 6
|
Build = 12
|
||||||
|
2
main.go
2
main.go
@@ -6,7 +6,7 @@ import (
|
|||||||
"turtlesilicon/pkg/ui" // Updated import path
|
"turtlesilicon/pkg/ui" // Updated import path
|
||||||
)
|
)
|
||||||
|
|
||||||
const appVersion = "1.0.5" // Added logo and unpatch functionality
|
const appVersion = "1.0.5"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
myApp := app.NewWithID("com.tairasu.turtlesilicon")
|
myApp := app.NewWithID("com.tairasu.turtlesilicon")
|
||||||
|
12
pkg/ui/ui.go
12
pkg/ui/ui.go
@@ -2,6 +2,7 @@ package ui
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
"net/url"
|
||||||
"os" // Added import for os.ReadFile
|
"os" // Added import for os.ReadFile
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -211,11 +212,22 @@ func CreateUI(myWindow fyne.Window) fyne.CanvasObject {
|
|||||||
|
|
||||||
UpdateAllStatuses() // Initial UI state update
|
UpdateAllStatuses() // Initial UI state update
|
||||||
|
|
||||||
|
// Create GitHub link
|
||||||
|
githubURL := "https://github.com/tairasu/TurtleSilicon"
|
||||||
|
parsedURL, err := url.Parse(githubURL)
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("Error parsing GitHub URL: %v", err)
|
||||||
|
}
|
||||||
|
githubLink := widget.NewHyperlink("GitHub Repository", parsedURL)
|
||||||
|
githubContainer := container.NewCenter(githubLink)
|
||||||
|
|
||||||
return container.NewVBox(
|
return container.NewVBox(
|
||||||
logoContainer,
|
logoContainer,
|
||||||
pathSelectionForm,
|
pathSelectionForm,
|
||||||
patchOperationsLayout,
|
patchOperationsLayout,
|
||||||
metalHudCheckbox,
|
metalHudCheckbox,
|
||||||
container.NewPadded(launchButton),
|
container.NewPadded(launchButton),
|
||||||
|
widget.NewSeparator(),
|
||||||
|
githubContainer,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user