Skip to content

Commit 340556b

Browse files
committed
clean views
1 parent 2216250 commit 340556b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

buttleofx/MainWindow.qml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ ApplicationWindow {
6666
property int selectedView: getSetting("view", 3)
6767

6868
property variant lastSelectedView: selectedView == 1 ? browserView: (selectedView == 2 ? quickGraphView: graphView )
69-
property variant browserView: [browser, null, player, null] //mapped to 1 in sql table
70-
property variant quickGraphView: [player, browser, advancedParamEditor, graphEditor] //mapped to 2 in sql table
71-
property variant graphView: [player, paramEditor, browser, graphEditor] //mapped to 3 in sql table
69+
70+
// mapped to int in save settings sql table (i.e selectedView)
71+
// the order follows the layout (topLeft, bottomLeft, topRight, bottomRight)
72+
property variant browserView: [browser, null, player, null] //mapped to 1
73+
property variant quickGraphView: [player, browser, advancedParamEditor, graphEditor] //mapped to 2
74+
property variant graphView: [player, paramEditor, browser, graphEditor] //mapped to 3
7275

7376
property string urlOfFileToSave: _buttleData.urlOfFileToSave
7477

0 commit comments

Comments
 (0)