58 |
58 |
59 # set initial values |
59 # set initial values |
60 self.downloadDirPicker.setText(Preferences.getUI("DownloadPath")) |
60 self.downloadDirPicker.setText(Preferences.getUI("DownloadPath")) |
61 self.requestFilenameCheckBox.setChecked( |
61 self.requestFilenameCheckBox.setChecked( |
62 Preferences.getUI("RequestDownloadFilename")) |
62 Preferences.getUI("RequestDownloadFilename")) |
63 policy = Preferences.getHelp("DownloadManagerRemovePolicy") |
63 try: |
64 from Helpviewer.Download.DownloadManager import DownloadManager |
64 policy = Preferences.getHelp("DownloadManagerRemovePolicy") |
65 if policy == DownloadManager.RemoveNever: |
65 from Helpviewer.Download.DownloadManager import DownloadManager |
66 self.cleanupNeverButton.setChecked(True) |
66 if policy == DownloadManager.RemoveNever: |
67 elif policy == DownloadManager.RemoveExit: |
67 self.cleanupNeverButton.setChecked(True) |
68 self.cleanupExitButton.setChecked(True) |
68 elif policy == DownloadManager.RemoveExit: |
69 else: |
69 self.cleanupExitButton.setChecked(True) |
70 self.cleanupSuccessfulButton.setChecked(True) |
70 else: |
|
71 self.cleanupSuccessfulButton.setChecked(True) |
|
72 except ImportError: |
|
73 self.cleanupGroup.hide() |
71 |
74 |
72 # HTTP proxy |
75 # HTTP proxy |
73 self.httpProxyHostEdit.setText( |
76 self.httpProxyHostEdit.setText( |
74 Preferences.getUI("ProxyHost/Http")) |
77 Preferences.getUI("ProxyHost/Http")) |
75 self.httpProxyPortSpin.setValue( |
78 self.httpProxyPortSpin.setValue( |