V0.6 #852
|
@ -4162,6 +4162,14 @@ class settingsDialog(QtGui.QDialog):
|
||||||
|
|
||||||
if shared.appdata == shared.lookupExeFolder():
|
if shared.appdata == shared.lookupExeFolder():
|
||||||
self.ui.checkBoxPortableMode.setChecked(True)
|
self.ui.checkBoxPortableMode.setChecked(True)
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
import tempfile
|
||||||
|
file = tempfile.NamedTemporaryFile(dir=shared.lookupExeFolder(), delete=True)
|
||||||
|
file.close # should autodelete
|
||||||
|
except:
|
||||||
|
self.ui.checkBoxPortableMode.setDisabled(True)
|
||||||
|
|
||||||
if 'darwin' in sys.platform:
|
if 'darwin' in sys.platform:
|
||||||
self.ui.checkBoxStartOnLogon.setDisabled(True)
|
self.ui.checkBoxStartOnLogon.setDisabled(True)
|
||||||
self.ui.checkBoxStartOnLogon.setText(_translate(
|
self.ui.checkBoxStartOnLogon.setText(_translate(
|
||||||
|
|
Reference in New Issue
Block a user