1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

screenshot: fix notif content to show open file browser

This commit is contained in:
bbedward
2025-12-05 16:56:29 -05:00
parent c0b4d5e2c2
commit 7f11632ea6

View File

@@ -34,7 +34,7 @@ func SendNotification(result NotifyResult) {
} }
var actions []string var actions []string
if !result.Clipboard && result.FilePath != "" { if result.FilePath != "" {
actions = []string{"default", "Open"} actions = []string{"default", "Open"}
} }
@@ -64,9 +64,11 @@ func SendNotification(result NotifyResult) {
summary := "Screenshot captured" summary := "Screenshot captured"
body := "" body := ""
if result.Clipboard { if result.Clipboard && result.FilePath != "" {
body = fmt.Sprintf("Copied to clipboard\n%s", filepath.Base(result.FilePath))
} else if result.Clipboard {
body = "Copied to clipboard" body = "Copied to clipboard"
} else { } else if result.FilePath != "" {
body = filepath.Base(result.FilePath) body = filepath.Base(result.FilePath)
} }