Add a notice about Metron/GCD changes on PyInstaller builds
This commit is contained in:
parent
a60eda1602
commit
9358431146
@ -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:
|
||||
|
@ -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):
|
||||
|
@ -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!<br/><br/>
|
||||
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}<br/>
|
||||
GCD: <a href="https://github.com/comictagger/gcd_talker/releases">https://github.com/comictagger/gcd_talker/releases</a><br/>
|
||||
Metron: <a href="https://github.com/comictagger/metron_talker/releases">https://github.com/comictagger/metron_talker/releases</a>
|
||||
""",
|
||||
)
|
||||
self.config[0].Dialog_Flags__notify_plugin_changes = not checked
|
||||
|
||||
if self.config[0].General__check_for_new_version:
|
||||
self.check_latest_version_online()
|
||||
|
Loading…
Reference in New Issue
Block a user