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:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user