mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -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
|
||||
if !result.Clipboard && result.FilePath != "" {
|
||||
if result.FilePath != "" {
|
||||
actions = []string{"default", "Open"}
|
||||
}
|
||||
|
||||
@@ -64,9 +64,11 @@ func SendNotification(result NotifyResult) {
|
||||
|
||||
summary := "Screenshot captured"
|
||||
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"
|
||||
} else {
|
||||
} else if result.FilePath != "" {
|
||||
body = filepath.Base(result.FilePath)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user