Skip to content

Commit

Permalink
Revert "Add Auto-Illustrations feature (DistributedProofreaders#706)" (
Browse files Browse the repository at this point in the history
  • Loading branch information
windymilla authored Jan 28, 2025
1 parent 287d6e2 commit edfc474
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 547 deletions.
7 changes: 0 additions & 7 deletions src/guiguts/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from guiguts.file import File, the_file, NUM_RECENT_FILES
from guiguts.footnotes import footnote_check, FootnoteIndexStyle
from guiguts.html_convert import HTMLGeneratorDialog, HTMLMarkupTypes
from guiguts.html_tools import HTMLImageDialog
from guiguts.illo_sn_fixup import illosn_check
from guiguts.maintext import maintext
from guiguts.mainwindow import (
Expand Down Expand Up @@ -441,9 +440,6 @@ def initialize_preferences(self) -> None:
PrefKey.HTML_UNDERLINE_MARKUP, HTMLMarkupTypes.SPAN_CLASS
)
preferences.set_default(PrefKey.HTML_SHOW_PAGE_NUMBERS, True)
preferences.set_default(PrefKey.HTML_IMAGE_UNIT, "%")
preferences.set_default(PrefKey.HTML_IMAGE_OVERRIDE_EPUB, True)
preferences.set_default(PrefKey.HTML_IMAGE_ALIGNMENT, "center")

# Check all preferences have a default
for pref_key in PrefKey:
Expand Down Expand Up @@ -775,9 +771,6 @@ def init_html_menu(self) -> None:
"""Create the HTML menu."""
menu_tools = Menu(menubar(), "HT~ML")
menu_tools.add_button("HTML ~Generator...", HTMLGeneratorDialog.show_dialog)
menu_tools.add_button(
"Auto-~Illustrations...", lambda: HTMLImageDialog.show_dialog(destroy=True)
)

def init_view_menu(self) -> None:
"""Create the View menu."""
Expand Down
Loading

0 comments on commit edfc474

Please # to comment.