From 9358431146def531cd0eb4b0b3484e740e4dfc0b Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Fri, 20 Sep 2024 14:45:06 -0700 Subject: [PATCH] Add a notice about Metron/GCD changes on PyInstaller builds --- comictaggerlib/ctsettings/file.py | 2 +- comictaggerlib/ctsettings/settngs_namespace.py | 4 ++-- comictaggerlib/taggerwindow.py | 12 ++++++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/comictaggerlib/ctsettings/file.py b/comictaggerlib/ctsettings/file.py index 41273ce..f26591d 100644 --- a/comictaggerlib/ctsettings/file.py +++ b/comictaggerlib/ctsettings/file.py @@ -79,7 +79,7 @@ def identifier(parser: settngs.Manager) -> None: def dialog(parser: settngs.Manager) -> None: parser.add_setting("show_disclaimer", default=True, cmdline=False) parser.add_setting("dont_notify_about_this_version", default="", cmdline=False) - parser.add_setting("ask_about_usage_stats", default=True, cmdline=False) + parser.add_setting("notify_plugin_changes", default=True, cmdline=False) def filename(parser: settngs.Manager) -> None: diff --git a/comictaggerlib/ctsettings/settngs_namespace.py b/comictaggerlib/ctsettings/settngs_namespace.py index 3edb902..9cb1687 100644 --- a/comictaggerlib/ctsettings/settngs_namespace.py +++ b/comictaggerlib/ctsettings/settngs_namespace.py @@ -123,7 +123,7 @@ class SettngsNS(settngs.TypedNS): Dialog_Flags__show_disclaimer: bool Dialog_Flags__dont_notify_about_this_version: str - Dialog_Flags__ask_about_usage_stats: bool + Dialog_Flags__notify_plugin_changes: bool Archive__rar: str @@ -264,7 +264,7 @@ class General(typing.TypedDict): class Dialog_Flags(typing.TypedDict): show_disclaimer: bool dont_notify_about_this_version: str - ask_about_usage_stats: bool + notify_plugin_changes: bool class Archive(typing.TypedDict): diff --git a/comictaggerlib/taggerwindow.py b/comictaggerlib/taggerwindow.py index d109715..dea47b8 100644 --- a/comictaggerlib/taggerwindow.py +++ b/comictaggerlib/taggerwindow.py @@ -333,6 +333,18 @@ class TaggerWindow(QtWidgets.QMainWindow): """, ) self.config[0].Dialog_Flags__show_disclaimer = not checked + if self.config[0].Dialog_Flags__notify_plugin_changes and getattr(sys, "frozen", False): + checked = OptionalMessageDialog.msg( + self, + "Plugins Have moved!", + f""" + Due to techinical issues the Metron and GCD plugins are no longer bundled in ComicTagger!

+ You will need to download the .zip or .whl from the GitHub release and and download it to {str(self.config[0].Runtime_Options__config.user_plugin_dir)!r}
+ GCD: https://github.com/comictagger/gcd_talker/releases
+ Metron: https://github.com/comictagger/metron_talker/releases + """, + ) + self.config[0].Dialog_Flags__notify_plugin_changes = not checked if self.config[0].General__check_for_new_version: self.check_latest_version_online()