5 |
5 |
6 """ |
6 """ |
7 Module implementing the Plugin Manager configuration page. |
7 Module implementing the Plugin Manager configuration page. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt5.QtCore import pyqtSlot |
10 from PyQt6.QtCore import pyqtSlot |
11 |
11 |
12 from E5Gui.E5PathPicker import E5PathPickerModes |
12 from E5Gui.E5PathPicker import E5PathPickerModes |
13 |
13 |
14 from .ConfigurationPageBase import ConfigurationPageBase |
14 from .ConfigurationPageBase import ConfigurationPageBase |
15 from .Ui_PluginManagerPage import Ui_PluginManagerPage |
15 from .Ui_PluginManagerPage import Ui_PluginManagerPage |
59 self.dailyCheckRadioButton.setChecked(True) |
59 self.dailyCheckRadioButton.setChecked(True) |
60 |
60 |
61 self.downloadedOnlyCheckBox.setChecked( |
61 self.downloadedOnlyCheckBox.setChecked( |
62 Preferences.getPluginManager("CheckInstalledOnly")) |
62 Preferences.getPluginManager("CheckInstalledOnly")) |
63 |
63 |
64 self.__repositoryUrl = Preferences.getUI("PluginRepositoryUrl6") |
64 self.__repositoryUrl = Preferences.getUI("PluginRepositoryUrl7") |
65 self.repositoryUrlEdit.setText(self.__repositoryUrl) |
65 self.repositoryUrlEdit.setText(self.__repositoryUrl) |
66 |
66 |
67 def save(self): |
67 def save(self): |
68 """ |
68 """ |
69 Public slot to save the Viewmanager configuration. |
69 Public slot to save the Viewmanager configuration. |
100 "CheckInstalledOnly", |
100 "CheckInstalledOnly", |
101 self.downloadedOnlyCheckBox.isChecked()) |
101 self.downloadedOnlyCheckBox.isChecked()) |
102 |
102 |
103 if self.repositoryUrlEdit.text() != self.__repositoryUrl: |
103 if self.repositoryUrlEdit.text() != self.__repositoryUrl: |
104 Preferences.setUI( |
104 Preferences.setUI( |
105 "PluginRepositoryUrl6", self.repositoryUrlEdit.text()) |
105 "PluginRepositoryUrl7", self.repositoryUrlEdit.text()) |
106 |
106 |
107 @pyqtSlot(bool) |
107 @pyqtSlot(bool) |
108 def on_repositoryUrlEditButton_toggled(self, checked): |
108 def on_repositoryUrlEditButton_toggled(self, checked): |
109 """ |
109 """ |
110 Private slot to set the read only status of the repository URL line |
110 Private slot to set the read only status of the repository URL line |