29 ) |
29 ) |
30 |
30 |
31 from eric7 import Preferences, Utilities |
31 from eric7 import Preferences, Utilities |
32 from eric7.EricWidgets import EricFileDialog |
32 from eric7.EricWidgets import EricFileDialog |
33 from eric7.EricWidgets.EricMainWindow import EricMainWindow |
33 from eric7.EricWidgets.EricMainWindow import EricMainWindow |
|
34 from eric7.SystemUtilities import OSUtilities |
34 from eric7.Utilities.uic import compileUiFiles |
35 from eric7.Utilities.uic import compileUiFiles |
35 |
36 |
36 from .PluginManager import PluginManager |
37 from .PluginManager import PluginManager |
37 from .Ui_PluginInstallDialog import Ui_PluginInstallDialog |
38 from .Ui_PluginInstallDialog import Ui_PluginInstallDialog |
38 |
39 |
170 self.tr("Plugin archive (*.zip)"), |
171 self.tr("Plugin archive (*.zip)"), |
171 ) |
172 ) |
172 |
173 |
173 if archives: |
174 if archives: |
174 matchflags = Qt.MatchFlag.MatchFixedString |
175 matchflags = Qt.MatchFlag.MatchFixedString |
175 if not Utilities.isWindowsPlatform(): |
176 if not OSUtilities.isWindowsPlatform(): |
176 matchflags |= Qt.MatchFlag.MatchCaseSensitive |
177 matchflags |= Qt.MatchFlag.MatchCaseSensitive |
177 for archive in archives: |
178 for archive in archives: |
178 if len(self.archivesList.findItems(archive, matchflags)) == 0: |
179 if len(self.archivesList.findItems(archive, matchflags)) == 0: |
179 # entry not in list already |
180 # entry not in list already |
180 self.archivesList.addItem(archive) |
181 self.archivesList.addItem(archive) |