src/eric7/Preferences/ConfigurationPages/ApplicationPage.py

branch
eric7
changeset 10339
446d22fa1aea
parent 10334
24300d16a154
child 10428
a071d4065202
equal deleted inserted replaced
10338:7329b8d78f7b 10339:446d22fa1aea
52 self.splashScreenCheckBox.setChecked(Preferences.getUI("ShowSplash")) 52 self.splashScreenCheckBox.setChecked(Preferences.getUI("ShowSplash"))
53 self.crashSessionEnabledCheckBox.setChecked( 53 self.crashSessionEnabledCheckBox.setChecked(
54 Preferences.getUI("CrashSessionEnabled") 54 Preferences.getUI("CrashSessionEnabled")
55 ) 55 )
56 self.globalMenuCheckBox.setChecked(Preferences.getUI("UseNativeMenuBar")) 56 self.globalMenuCheckBox.setChecked(Preferences.getUI("UseNativeMenuBar"))
57 if not OSUtilities.isLinuxPlatform() and not OSUtilities.isBsdPlatform(): 57 if not OSUtilities.isLinuxPlatform() and not OSUtilities.isFreeBsdPlatform():
58 self.globalMenuCheckBox.hide() 58 self.globalMenuCheckBox.hide()
59 59
60 openOnStartup = Preferences.getUI("OpenOnStartup") 60 openOnStartup = Preferences.getUI("OpenOnStartup")
61 if openOnStartup == 0: 61 if openOnStartup == 0:
62 self.noOpenRadioButton.setChecked(True) 62 self.noOpenRadioButton.setChecked(True)
111 ) 111 )
112 Preferences.setUI("ShowSplash", self.splashScreenCheckBox.isChecked()) 112 Preferences.setUI("ShowSplash", self.splashScreenCheckBox.isChecked())
113 Preferences.setUI( 113 Preferences.setUI(
114 "CrashSessionEnabled", self.crashSessionEnabledCheckBox.isChecked() 114 "CrashSessionEnabled", self.crashSessionEnabledCheckBox.isChecked()
115 ) 115 )
116 if OSUtilities.isLinuxPlatform() or OSUtilities.isBsdPlatform(): 116 if OSUtilities.isLinuxPlatform() or OSUtilities.isFreeBsdPlatform():
117 Preferences.setUI("UseNativeMenuBar", self.globalMenuCheckBox.isChecked()) 117 Preferences.setUI("UseNativeMenuBar", self.globalMenuCheckBox.isChecked())
118 118
119 if self.noOpenRadioButton.isChecked(): 119 if self.noOpenRadioButton.isChecked():
120 openOnStartup = 0 120 openOnStartup = 0
121 elif self.lastFileRadioButton.isChecked(): 121 elif self.lastFileRadioButton.isChecked():

eric ide

mercurial