--- a/eric7/UI/UserInterface.py Wed Oct 27 20:03:03 2021 +0200 +++ b/eric7/UI/UserInterface.py Thu Oct 28 18:15:55 2021 +0200 @@ -169,7 +169,7 @@ def __init__(self, app, locale, splash, plugin, disabledPlugins, noOpenAtStartup, noCrashOpenAtStartup, disableCrashSession, - smallScreen, restartArguments, originalPathString): + restartArguments, originalPathString): """ Constructor @@ -194,9 +194,6 @@ @param disableCrashSession flag indicating to disable the crash session support @type bool - @param smallScreen flag indicating to use the interface for small - screens (i.e. smaller than 1920 x 1080) - @type bool @param restartArguments list of command line parameters to be used for a restart @type list of str @@ -219,12 +216,7 @@ self.__originalPathString = originalPathString - primaryScreenSize = app.primaryScreen().size() - if ( - smallScreen or - primaryScreenSize.width() < 1920 or - primaryScreenSize.height() < 1080 - ): + if app.usesSmallScreen(): # override settings for small screens Preferences.setUI("LayoutType", "Sidebars") Preferences.setUI("CombinedLeftRightSidebar", True)