Preferences/ConfigurationPages/NetworkPage.py

branch
6_1_x
changeset 4853
f28d62c581de
parent 4632
ca310db386ed
child 4854
b946a74a945f
equal deleted inserted replaced
4851:1ac86f824f49 4853:f28d62c581de
64 64
65 # set initial values 65 # set initial values
66 self.downloadDirEdit.setText(Preferences.getUI("DownloadPath")) 66 self.downloadDirEdit.setText(Preferences.getUI("DownloadPath"))
67 self.requestFilenameCheckBox.setChecked( 67 self.requestFilenameCheckBox.setChecked(
68 Preferences.getUI("RequestDownloadFilename")) 68 Preferences.getUI("RequestDownloadFilename"))
69 policy = Preferences.getHelp("DownloadManagerRemovePolicy") 69 try:
70 from Helpviewer.Download.DownloadManager import DownloadManager 70 policy = Preferences.getHelp("DownloadManagerRemovePolicy")
71 if policy == DownloadManager.RemoveNever: 71 from Helpviewer.Download.DownloadManager import DownloadManager
72 self.cleanupNeverButton.setChecked(True) 72 if policy == DownloadManager.RemoveNever:
73 elif policy == DownloadManager.RemoveExit: 73 self.cleanupNeverButton.setChecked(True)
74 self.cleanupExitButton.setChecked(True) 74 elif policy == DownloadManager.RemoveExit:
75 else: 75 self.cleanupExitButton.setChecked(True)
76 self.cleanupSuccessfulButton.setChecked(True) 76 else:
77 self.cleanupSuccessfulButton.setChecked(True)
78 except ImportError:
79 self.cleanupGroup.hide()
77 80
78 # HTTP proxy 81 # HTTP proxy
79 self.httpProxyHostEdit.setText( 82 self.httpProxyHostEdit.setText(
80 Preferences.getUI("ProxyHost/Http")) 83 Preferences.getUI("ProxyHost/Http"))
81 self.httpProxyPortSpin.setValue( 84 self.httpProxyPortSpin.setValue(

eric ide

mercurial