mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 967286 - Default to Layout.FRAME if layout type isn't specified (r=margaret)
This commit is contained in:
parent
fe90f55569
commit
9255b46a04
@ -210,7 +210,10 @@ let HomePanels = (function () {
|
||||
throw "Home.panels: Can't create a home panel without an id and title!";
|
||||
}
|
||||
|
||||
if (!_valueExists(Layout, panel.layout)) {
|
||||
if (!panel.layout) {
|
||||
// Use FRAME layout by default
|
||||
panel.layout = Layout.FRAME;
|
||||
} else if (!_valueExists(Layout, panel.layout)) {
|
||||
throw "Home.panels: Invalid layout for panel: panel.id = " + panel.id + ", panel.layout =" + panel.layout;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user