This commit is contained in:
Lyz Coote
2026-02-02 21:52:13 +01:00
parent d6a5cb8a67
commit 0f71cd3e0a
30 changed files with 3949 additions and 93 deletions

10
main.go
View File

@@ -33,6 +33,7 @@ func main() {
windowTitle := "EMLy - EML Viewer for 3gIT"
windowWidth := 1024
windowHeight := 768
frameless := true
for _, arg := range args {
if strings.Contains(arg, "--view-image") {
@@ -44,6 +45,13 @@ func main() {
windowWidth = 800
windowHeight = 600
}
if strings.Contains(arg, "--view-pdf") {
uniqueId = "emly-pdf-viewer-" + strings.ReplaceAll(arg, "--view-pdf=", "")
windowTitle = "EMLy PDF Viewer"
windowWidth = 800
windowHeight = 600
frameless = true
}
}
// Create an instance of the app structure
@@ -76,7 +84,7 @@ func main() {
EnableDefaultContextMenu: true,
MinWidth: 964,
MinHeight: 690,
Frameless: true,
Frameless: frameless,
})
if err != nil {