mirror of
https://github.com/safing/portmaster
synced 2025-09-02 10:39:22 +00:00
Disable force downloading when checking for updates
This commit is contained in:
parent
7fac37f7e3
commit
4d12f702a9
1 changed files with 2 additions and 2 deletions
|
@ -14,12 +14,12 @@ func registerAPIEndpoints() error {
|
||||||
Write: api.PermitUser,
|
Write: api.PermitUser,
|
||||||
BelongsTo: module,
|
BelongsTo: module,
|
||||||
ActionFunc: func(_ *api.Request) (msg string, err error) {
|
ActionFunc: func(_ *api.Request) (msg string, err error) {
|
||||||
if err := TriggerUpdate(true); err != nil {
|
if err := TriggerUpdate(false); err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
return "triggered update check", nil
|
return "triggered update check", nil
|
||||||
},
|
},
|
||||||
Name: "Check for Updates",
|
Name: "Check for Updates",
|
||||||
Description: "Triggers checking for updates.",
|
Description: "Checks if new versions are available and downloads and applies them, if automatic updates are enabled.",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue