diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-08-24 21:25:30 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-09-01 20:11:01 -0400 |
| commit | 5c0e2b8e9fcba9f06b288e6dbf8d5183fb93d5d4 (patch) | |
| tree | e3dbc15f36070e8a141b531781b6d656fa668ff1 /lib/extensions/install.py | |
| parent | 7bf8c2d871eb012ad2fbbf34433bd6ea0affb9e5 (diff) | |
don't show an icon on windows
Diffstat (limited to 'lib/extensions/install.py')
| -rw-r--r-- | lib/extensions/install.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/extensions/install.py b/lib/extensions/install.py index 6c179beb..d8e91a8d 100644 --- a/lib/extensions/install.py +++ b/lib/extensions/install.py @@ -56,6 +56,13 @@ class InstallerFrame(wx.Frame): self.path_input.SetValue(dialog.GetPath()) def install_button_clicked(self, event): + if sys.platform == "win32": + # On windows, the default icon shows as a broken image. No idea + # why. Workaround: don't show an icon. + style = wx.ICON_NONE + else: + style = 0 + try: self.install_addons('palettes') self.install_addons('symbols') @@ -63,12 +70,12 @@ class InstallerFrame(wx.Frame): wx.MessageDialog(self, _('Inkscape add-on installation failed') + ': \n' + traceback.format_exc(), _('Installation Failed'), - wx.OK).ShowModal() + wx.OK | style).ShowModal() else: wx.MessageDialog(self, _('Inkscape add-on files have been installed. Please restart Inkscape to load the new add-ons.'), _('Installation Completed'), - wx.OK).ShowModal() + wx.OK | style).ShowModal() self.Destroy() |
