diff -r 6268db2f966d -r a915f8dd1ca6 Preferences/__init__.py --- a/Preferences/__init__.py Sun Jul 08 17:33:25 2018 +0200 +++ b/Preferences/__init__.py Sun Jul 08 18:55:21 2018 +0200 @@ -1918,40 +1918,6 @@ prefClass.settings.setValue("UI/Language", lang) -def getUILayout(prefClass=Prefs): - """ - Module function to retrieve the layout for the user interface. - - @param prefClass preferences class used as the storage area - @return the UI layout as a tuple of main layout, flag for - an embedded shell and a value for an embedded file browser - """ - layoutType = prefClass.settings.value( - "UI/LayoutType", prefClass.uiDefaults["LayoutType"]) - if layoutType in ["DockWindows", "FloatingWindows"]: - # change old fashioned layouts to the modern default - layoutType = prefClass.uiDefaults["LayoutType"] - layout = (layoutType, - int(prefClass.settings.value("UI/LayoutShellEmbedded", - prefClass.uiDefaults["LayoutShellEmbedded"])), - int(prefClass.settings.value("UI/LayoutFileBrowserEmbedded", - prefClass.uiDefaults["LayoutFileBrowserEmbedded"])), - ) - return layout - - -def setUILayout(layout, prefClass=Prefs): - """ - Module function to store the layout for the user interface. - - @param layout the layout type - @param prefClass preferences class used as the storage area - """ - prefClass.settings.setValue("UI/LayoutType", layout[0]) - prefClass.settings.setValue("UI/LayoutShellEmbedded", layout[1]) - prefClass.settings.setValue("UI/LayoutFileBrowserEmbedded", layout[2]) - - def getViewManager(prefClass=Prefs): """ Module function to retrieve the selected viewmanager type.