mirror of
https://github.com/rclone/rclone.git
synced 2025-08-18 09:30:03 +02:00
rc: convert options to new style
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
|
||||
"github.com/rclone/rclone/fs"
|
||||
"github.com/rclone/rclone/fs/config"
|
||||
"github.com/rclone/rclone/fs/rc/rcflags"
|
||||
"github.com/rclone/rclone/fs/rc"
|
||||
)
|
||||
|
||||
// PackageJSON is the structure of package.json of a plugin
|
||||
@@ -83,7 +83,7 @@ func newPlugins(fileName string) *Plugins {
|
||||
}
|
||||
|
||||
func initPluginsOrError() error {
|
||||
if !rcflags.Opt.WebUI {
|
||||
if !rc.Opt.WebUI {
|
||||
return errors.New("WebUI needs to be enabled for plugins to work")
|
||||
}
|
||||
initMutex.Lock()
|
||||
|
Reference in New Issue
Block a user