mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-03 14:50:49 +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)
|
if(icon != null)
|
||||||
iconsDir.saveIconBinary(config.id, icon);
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
catch(ex: Throwable) {
|
catch(ex: Throwable) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue