kopia lustrzana https://github.com/inkstitch/inkstitch
				
				
				
			don't show an icon on windows
							rodzic
							
								
									7bf8c2d871
								
							
						
					
					
						commit
						5c0e2b8e9f
					
				|  | @ -56,6 +56,13 @@ class InstallerFrame(wx.Frame): | ||||||
|             self.path_input.SetValue(dialog.GetPath()) |             self.path_input.SetValue(dialog.GetPath()) | ||||||
| 
 | 
 | ||||||
|     def install_button_clicked(self, event): |     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: |         try: | ||||||
|             self.install_addons('palettes') |             self.install_addons('palettes') | ||||||
|             self.install_addons('symbols') |             self.install_addons('symbols') | ||||||
|  | @ -63,12 +70,12 @@ class InstallerFrame(wx.Frame): | ||||||
|             wx.MessageDialog(self, |             wx.MessageDialog(self, | ||||||
|                              _('Inkscape add-on installation failed') + ': \n' + traceback.format_exc(), |                              _('Inkscape add-on installation failed') + ': \n' + traceback.format_exc(), | ||||||
|                              _('Installation Failed'), |                              _('Installation Failed'), | ||||||
|                              wx.OK).ShowModal() |                              wx.OK | style).ShowModal() | ||||||
|         else: |         else: | ||||||
|             wx.MessageDialog(self, |             wx.MessageDialog(self, | ||||||
|                              _('Inkscape add-on files have been installed.  Please restart Inkscape to load the new add-ons.'), |                              _('Inkscape add-on files have been installed.  Please restart Inkscape to load the new add-ons.'), | ||||||
|                              _('Installation Completed'), |                              _('Installation Completed'), | ||||||
|                              wx.OK).ShowModal() |                              wx.OK | style).ShowModal() | ||||||
| 
 | 
 | ||||||
|         self.Destroy() |         self.Destroy() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										12
									
								
								messages.po
								
								
								
								
							
							
						
						
									
										12
									
								
								messages.po
								
								
								
								
							|  | @ -8,7 +8,7 @@ msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: PROJECT VERSION\n" | "Project-Id-Version: PROJECT VERSION\n" | ||||||
| "Report-Msgid-Bugs-To: EMAIL@ADDRESS\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" | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||||||
| "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||||||
| "Language-Team: LANGUAGE <LL@li.org>\n" | "Language-Team: LANGUAGE <LL@li.org>\n" | ||||||
|  | @ -509,25 +509,25 @@ msgstr "" | ||||||
| msgid "Choose Inkscape directory" | msgid "Choose Inkscape directory" | ||||||
| msgstr "" | msgstr "" | ||||||
| 
 | 
 | ||||||
| #: lib/extensions/install.py:64 | #: lib/extensions/install.py:71 | ||||||
| msgid "Inkscape add-on installation failed" | msgid "Inkscape add-on installation failed" | ||||||
| msgstr "" | msgstr "" | ||||||
| 
 | 
 | ||||||
| #: lib/extensions/install.py:65 | #: lib/extensions/install.py:72 | ||||||
| msgid "Installation Failed" | msgid "Installation Failed" | ||||||
| msgstr "" | msgstr "" | ||||||
| 
 | 
 | ||||||
| #: lib/extensions/install.py:69 | #: lib/extensions/install.py:76 | ||||||
| msgid "" | msgid "" | ||||||
| "Inkscape add-on files have been installed.  Please restart Inkscape to " | "Inkscape add-on files have been installed.  Please restart Inkscape to " | ||||||
| "load the new add-ons." | "load the new add-ons." | ||||||
| msgstr "" | msgstr "" | ||||||
| 
 | 
 | ||||||
| #: lib/extensions/install.py:70 | #: lib/extensions/install.py:77 | ||||||
| msgid "Installation Completed" | msgid "Installation Completed" | ||||||
| msgstr "" | msgstr "" | ||||||
| 
 | 
 | ||||||
| #: lib/extensions/install.py:104 | #: lib/extensions/install.py:111 | ||||||
| msgid "Ink/Stitch Add-ons Installer" | msgid "Ink/Stitch Add-ons Installer" | ||||||
| msgstr "" | msgstr "" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Ładowanie…
	
		Reference in New Issue
	
	 Lex Neva
						Lex Neva