Skip to content

Commit

Permalink
added 'add car points option to config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbehley committed Jan 2, 2020
1 parent eabb4f3 commit 805a35c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/widget/Mainframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,7 @@ void Mainframe::readConfig() {
ui.mViewportXYZ->setFlipMouseButtons((value == 0) ? false : true);
std::cout << "-- Setting 'flip mouse buttons' to " << ((value == 0) ? "false" : "true") << std::endl;
}

if (tokens[0] == "camera") {
std::string value = trim(tokens[1]);
auto cameras = ui.mViewportXYZ->getCameraNames();
Expand All @@ -986,6 +987,13 @@ void Mainframe::readConfig() {
<< std::endl;
}
}

if (tokens[0] == "add car points") {
std::string value = trim(tokens[1]);
if (value == "true" || value == "True" || value == "1") {
ui.chkAddCarPoints->setChecked(true);
}
}
}

in.close();
Expand Down

0 comments on commit 805a35c

Please sign in to comment.