mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-22 18:16:43 +00:00
Other(refactor): Move Settings out of frontend
This commit is contained in:
@ -22,6 +22,7 @@ import (
|
||||
"crypto/tls"
|
||||
|
||||
"github.com/ProtonMail/proton-bridge/v2/internal/bridge"
|
||||
"github.com/ProtonMail/proton-bridge/v2/internal/config/settings"
|
||||
"github.com/ProtonMail/proton-bridge/v2/internal/updater"
|
||||
"github.com/ProtonMail/proton-bridge/v2/pkg/pmapi"
|
||||
)
|
||||
@ -84,6 +85,13 @@ type Bridger interface {
|
||||
GetCurrentUserAgent() string
|
||||
SetCurrentPlatform(string)
|
||||
|
||||
Get(settings.Key) string
|
||||
Set(settings.Key, string)
|
||||
GetBool(settings.Key) bool
|
||||
SetBool(settings.Key, bool)
|
||||
GetInt(settings.Key) int
|
||||
SetInt(settings.Key, int)
|
||||
|
||||
// -- old --
|
||||
|
||||
ReportBug(osType, osVersion, description, accountName, address, emailClient string, attachLogs bool) error
|
||||
|
||||
Reference in New Issue
Block a user