don't show an icon on windows

pull/301/head
Lex Neva 2018-08-24 21:25:30 -04:00
rodzic 7bf8c2d871
commit 5c0e2b8e9f
2 zmienionych plików z 15 dodań i 8 usunięć

Wyświetl plik

@ -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()

Wyświetl plik

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-08-24 21:20-0400\n"
"POT-Creation-Date: 2018-08-24 21:25-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -509,25 +509,25 @@ msgstr ""
msgid "Choose Inkscape directory"
msgstr ""
#: lib/extensions/install.py:64
#: lib/extensions/install.py:71
msgid "Inkscape add-on installation failed"
msgstr ""
#: lib/extensions/install.py:65
#: lib/extensions/install.py:72
msgid "Installation Failed"
msgstr ""
#: lib/extensions/install.py:69
#: lib/extensions/install.py:76
msgid ""
"Inkscape add-on files have been installed. Please restart Inkscape to "
"load the new add-ons."
msgstr ""
#: lib/extensions/install.py:70
#: lib/extensions/install.py:77
msgid "Installation Completed"
msgstr ""
#: lib/extensions/install.py:104
#: lib/extensions/install.py:111
msgid "Ink/Stitch Add-ons Installer"
msgstr ""