167 |
167 |
168 ErrorLogFileName = "eric7_error.log" |
168 ErrorLogFileName = "eric7_error.log" |
169 |
169 |
170 def __init__(self, app, locale, splash, plugin, disabledPlugins, |
170 def __init__(self, app, locale, splash, plugin, disabledPlugins, |
171 noOpenAtStartup, noCrashOpenAtStartup, disableCrashSession, |
171 noOpenAtStartup, noCrashOpenAtStartup, disableCrashSession, |
172 smallScreen, restartArguments, originalPathString): |
172 restartArguments, originalPathString): |
173 """ |
173 """ |
174 Constructor |
174 Constructor |
175 |
175 |
176 @param app reference to the application object |
176 @param app reference to the application object |
177 @type EricApplication |
177 @type EricApplication |
217 self.__disableCrashSession = disableCrashSession |
214 self.__disableCrashSession = disableCrashSession |
218 self.__disabledPlugins = disabledPlugins[:] |
215 self.__disabledPlugins = disabledPlugins[:] |
219 |
216 |
220 self.__originalPathString = originalPathString |
217 self.__originalPathString = originalPathString |
221 |
218 |
222 primaryScreenSize = app.primaryScreen().size() |
219 if app.usesSmallScreen(): |
223 if ( |
|
224 smallScreen or |
|
225 primaryScreenSize.width() < 1920 or |
|
226 primaryScreenSize.height() < 1080 |
|
227 ): |
|
228 # override settings for small screens |
220 # override settings for small screens |
229 Preferences.setUI("LayoutType", "Sidebars") |
221 Preferences.setUI("LayoutType", "Sidebars") |
230 Preferences.setUI("CombinedLeftRightSidebar", True) |
222 Preferences.setUI("CombinedLeftRightSidebar", True) |
231 |
223 |
232 self.__layoutType = Preferences.getUI("LayoutType") |
224 self.__layoutType = Preferences.getUI("LayoutType") |