mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Keep plugin settings on update
This commit is contained in:
parent
25527997fa
commit
2fa9005806
1 changed files with 4 additions and 1 deletions
|
@ -374,7 +374,10 @@ class StatePlugins {
|
|||
if(icon != null)
|
||||
iconsDir.saveIconBinary(config.id, icon);
|
||||
|
||||
_plugins.save(SourcePluginDescriptor(config, existingAuth?.toEncrypted(), existingCaptcha?.toEncrypted(), flags));
|
||||
val descriptor = SourcePluginDescriptor(config, existingAuth?.toEncrypted(), existingCaptcha?.toEncrypted(), flags);
|
||||
descriptor.settings = existing?.settings ?: descriptor.settings;
|
||||
descriptor.appSettings = existing?.appSettings ?: descriptor.appSettings;
|
||||
_plugins.save(descriptor);
|
||||
return null;
|
||||
}
|
||||
catch(ex: Throwable) {
|
||||
|
|
Loading…
Add table
Reference in a new issue