mirror of
https://github.com/safing/portmaster
synced 2025-09-03 19:19:15 +00:00
Merge pull request #169 from safing/feature/update-notif-wording
Reword the update notification and endpoint rule reason
This commit is contained in:
commit
5d901f5f88
2 changed files with 8 additions and 8 deletions
|
@ -21,9 +21,9 @@ type reason struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *reason) String() string {
|
func (r *reason) String() string {
|
||||||
prefix := "endpoint in blocklist: "
|
prefix := "denied by rule: "
|
||||||
if r.Permitted {
|
if r.Permitted {
|
||||||
prefix = "endpoint in allowlist: "
|
prefix = "permitted by rule: "
|
||||||
}
|
}
|
||||||
|
|
||||||
return prefix + r.description + " " + r.Value
|
return prefix + r.description + " " + r.Value
|
||||||
|
|
|
@ -101,14 +101,14 @@ func upgradeCoreNotify() error {
|
||||||
if info.GetInfo().Version != pmCoreUpdate.Version() {
|
if info.GetInfo().Version != pmCoreUpdate.Version() {
|
||||||
n := notifications.NotifyInfo(
|
n := notifications.NotifyInfo(
|
||||||
"updates:core-update-available",
|
"updates:core-update-available",
|
||||||
fmt.Sprintf("There is an update available for the Portmaster core (v%s), please restart the Portmaster to apply the update.", pmCoreUpdate.Version()),
|
fmt.Sprintf(":tada: Update to **Portmaster v%s** is available! Please restart the Portmaster to apply the update.", pmCoreUpdate.Version()),
|
||||||
notifications.Action{
|
|
||||||
ID: "later",
|
|
||||||
Text: "Later",
|
|
||||||
},
|
|
||||||
notifications.Action{
|
notifications.Action{
|
||||||
ID: "restart",
|
ID: "restart",
|
||||||
Text: "Restart Portmaster Now",
|
Text: "Restart",
|
||||||
|
},
|
||||||
|
notifications.Action{
|
||||||
|
ID: "later",
|
||||||
|
Text: "Not now",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
n.SetActionFunction(upgradeCoreNotifyActionHandler)
|
n.SetActionFunction(upgradeCoreNotifyActionHandler)
|
||||||
|
|
Loading…
Add table
Reference in a new issue