mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Add support for disabling plugins (#4141)
* Move timestamp to own file * Backend changes * UI changes
This commit is contained in:
@@ -131,7 +131,8 @@ const (
|
||||
PythonPath = "python_path"
|
||||
|
||||
// plugin options
|
||||
PluginsPath = "plugins_path"
|
||||
PluginsPath = "plugins_path"
|
||||
DisabledPlugins = "plugins.disabled"
|
||||
|
||||
// i18n
|
||||
Language = "language"
|
||||
@@ -722,6 +723,10 @@ func (i *Instance) GetPluginsPath() string {
|
||||
return i.getString(PluginsPath)
|
||||
}
|
||||
|
||||
func (i *Instance) GetDisabledPlugins() []string {
|
||||
return i.getStringSlice(DisabledPlugins)
|
||||
}
|
||||
|
||||
func (i *Instance) GetPythonPath() string {
|
||||
return i.getString(PythonPath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user