Skip to content

Commit 748638e

Browse files
authored
Fix error by loading default workspace, addition to betaflight#751 (betaflight#752)
* removed unused files * Default workspace function call order is changed
1 parent cb48fbb commit 748638e

File tree

3 files changed

+1
-5137
lines changed

3 files changed

+1
-5137
lines changed

src/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,7 @@ function BlackboxLogViewer() {
10641064

10651065
graphLegend = new GraphLegend($(".log-graph-legend"), activeGraphConfig, onLegendVisbilityChange, onLegendSelectionChange, onLegendHighlightChange, zoomGraphConfig, expandGraphConfig, newGraphConfig);
10661066

1067+
workspaceMenu = new WorkspaceMenu($("#default_workspaces_menu"), onSwitchWorkspace);
10671068
// initial load of the configuration defaults if we have them
10681069
prefs.get('workspaceGraphConfigs', function(item) {
10691070
if (item) {
@@ -1084,8 +1085,6 @@ function BlackboxLogViewer() {
10841085

10851086
workspaceSelection = new WorkspaceSelection($(".log-workspace-selection"), workspaceGraphConfigs, onSwitchWorkspace, onSaveWorkspace);
10861087
onSwitchWorkspace(workspaceGraphConfigs, workspaceSelection);
1087-
1088-
workspaceMenu = new WorkspaceMenu($("#default_workspaces_menu"), onSwitchWorkspace);
10891088

10901089
prefs.get('log-legend-hidden', function(item) {
10911090
if (item) {

0 commit comments

Comments
 (0)