Plugins: pass wallet to settings_dialog

Also, remove settings_widget method.
The widget should always be a button.

nwc: is_initialized -> initialized
This commit is contained in:
ThomasV
2025-04-12 10:57:53 +02:00
parent 3a18000f7a
commit eff8b65355
8 changed files with 25 additions and 28 deletions

View File

@@ -44,7 +44,7 @@ class NWCServerPlugin(BasePlugin):
def start_plugin(self, wallet: 'Abstract_Wallet'):
if not wallet.has_lightning():
return
if self.is_initialized:
if self.initialized:
# this might be called for several wallets. only use one.
return
storage = self.get_plugin_storage(wallet)