summaryrefslogtreecommitdiff
path: root/lib/extensions/install.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-09-12 21:32:15 -0400
committerGitHub <noreply@github.com>2018-09-12 21:32:15 -0400
commit7b8af2ed5731bc10b331db2b32dbce48f60c33a9 (patch)
treeac06f38cde84e676f8aa8e91f08b71d45b9f2642 /lib/extensions/install.py
parent3fd741a1a4218b6559184aaadcde8abca178bde2 (diff)
parentd30507171b04f37871db74609c0a521325bddbd1 (diff)
Merge pull request #301 from inkstitch/lexelby/bug-fixes
bug fixes
Diffstat (limited to 'lib/extensions/install.py')
-rw-r--r--lib/extensions/install.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/extensions/install.py b/lib/extensions/install.py
index eb9f5289..c6dadd42 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()