Skip to content

Commit

Permalink
Fix loading mistake before shit hits the fan
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-spataru committed May 17, 2017
1 parent 0278a4d commit a1064e2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion qml/MainWindow/Preferences.qml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ RowLayout {
// Open the dashboard on application launch
//
Component.onCompleted: {
DS.setProtocol (protocol.currentIndex)
cDashboard.openDashboard (dashboard.currentIndex)
}

Expand Down
2 changes: 0 additions & 2 deletions qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ Item {
// Initialize the DS engine when the application starts
//
Component.onCompleted: {
DS.start()

if (!mainwindow.visible) {
mainwindow.visible = true
mainwindow.updateWindowMode()
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ int main (int argc, char* argv[])
/* Configure the shortcuts handler and start the DS */
app.installEventFilter (&shortcuts);
driverstation->declareQML();
driverstation->start();

/* Load the QML interface */
QQmlApplicationEngine engine;
Expand Down

0 comments on commit a1064e2

Please sign in to comment.