Other(refactor): Move Settings out of frontend

This commit is contained in:
James Houlahan
2022-08-22 12:32:55 +02:00
committed by Jakub
parent 310c6a1ccf
commit 0c7453684b
17 changed files with 178 additions and 129 deletions

View File

@ -20,7 +20,6 @@ package frontend
import (
"github.com/ProtonMail/proton-bridge/v2/internal/bridge"
"github.com/ProtonMail/proton-bridge/v2/internal/config/settings"
"github.com/ProtonMail/proton-bridge/v2/internal/frontend/cli"
"github.com/ProtonMail/proton-bridge/v2/internal/frontend/grpc"
"github.com/ProtonMail/proton-bridge/v2/internal/frontend/types"
@ -42,7 +41,6 @@ func New(
frontendType string,
showWindowOnStart bool,
panicHandler types.PanicHandler,
settings *settings.Settings,
eventListener listener.Listener,
updater types.Updater,
bridge *bridge.Bridge,
@ -54,7 +52,6 @@ func New(
return grpc.NewService(
showWindowOnStart,
panicHandler,
settings,
eventListener,
updater,
bridgeWrap,
@ -64,7 +61,6 @@ func New(
case "cli":
return cli.New(
panicHandler,
settings,
eventListener,
updater,
bridgeWrap,