Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the plugin selection dialog #266

Merged
merged 3 commits into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions electrumabc/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ def load_internal_plugins(self):
for loader, name, ispkg in pkgutil.iter_modules(
[self.internal_plugins_pkgpath]
):
# we don't have a server for cosigner_pool
if name == "cosigner_pool":
continue
full_name = f"electrumabc_plugins.{name}"
spec = importlib.util.find_spec(full_name)
# pkgutil found it but importlib can't ?!
Expand Down
4 changes: 3 additions & 1 deletion electrumabc_gui/qt/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -5882,7 +5882,9 @@ def do_toggle(weakCb, name, i):
run_hook("init_qt", gui_object)

for i, descr in enumerate(plugins.internal_plugin_metadata.values()):
name = descr["__name__"]
# descr["__name__"] is the fully qualified package name
# (electrumabc_plugins.name)
name = descr["__name__"].split(".")[-1]
p = plugins.get_internal_plugin(name)
if descr.get("registers_keystore"):
continue
Expand Down
3 changes: 1 addition & 2 deletions electrumabc_plugins/fusion/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,7 @@ def history_list_filter(self, history_list, h_item, label):
def history_list_context_menu_setup(self, history_list, menu, item, tx_hash):
# NB: We unconditionally create this menu if the plugin is loaded because
# it's possible for any wallet, even a watching-only wallet to have
# fusion tx's with the correct labels (if the user uses labelsync or
# has imported labels).
# fusion tx's with the correct labels (if the user has imported labels).
menu.addSeparator()

def action_callback():
Expand Down
15 changes: 0 additions & 15 deletions electrumabc_plugins/labels/__init__.py

This file was deleted.

294 changes: 0 additions & 294 deletions electrumabc_plugins/labels/labels.py

This file was deleted.

Loading