v1.1.4
This commit is contained in:
10
main.go
10
main.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user