diff --git a/app/src/main/java/com/futo/platformplayer/states/StatePlugins.kt b/app/src/main/java/com/futo/platformplayer/states/StatePlugins.kt index 58454cc6..d499b226 100644 --- a/app/src/main/java/com/futo/platformplayer/states/StatePlugins.kt +++ b/app/src/main/java/com/futo/platformplayer/states/StatePlugins.kt @@ -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) {