Fix inability to edit, delete (etc.) topics whose names overlap non-db topic names.
This commit is contained in:
parent
7f41e5a649
commit
a38fdc90dc
1 changed files with 11 additions and 1 deletions
|
|
@ -932,7 +932,17 @@ class CmdSetHelp(CmdHelp):
|
||||||
# types of entries.
|
# types of entries.
|
||||||
self.msg(f"|rWarning:\n|r{warning}|n")
|
self.msg(f"|rWarning:\n|r{warning}|n")
|
||||||
repl = yield ("|wDo you still want to continue? Y/[N]?|n")
|
repl = yield ("|wDo you still want to continue? Y/[N]?|n")
|
||||||
if repl.lower() not in ("y", "yes"):
|
if repl.lower() in ("y", "yes"):
|
||||||
|
# find a db-based help entry if one already exists
|
||||||
|
db_topics = {**db_help_topics}
|
||||||
|
db_categories = list(
|
||||||
|
set(HelpCategory(topic.help_category) for topic in db_topics.values())
|
||||||
|
)
|
||||||
|
entries = list(db_topics.values()) + db_categories
|
||||||
|
match, _ = self.do_search(querystr, entries)
|
||||||
|
if match:
|
||||||
|
old_entry = match
|
||||||
|
else:
|
||||||
self.msg("Aborted.")
|
self.msg("Aborted.")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue