Skip to content

Commit

Permalink
showLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jan 3, 2020
1 parent 28f5648 commit 98fbbf5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions src/eez/gui/action_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1152,10 +1152,7 @@ void action_dlog_toggle() {

void action_show_dlog_view() {
dlog_view::g_showLatest = true;
if (dlog_record::isExecuting()) {
dlog_view::g_showLabels = false;
} else {
dlog_view::g_showLabels = true;
if (!dlog_record::isExecuting()) {
dlog_view::openFile(dlog_record::getLatestFilePath());
}
showPage(PAGE_ID_DLOG_VIEW);
Expand Down
2 changes: 0 additions & 2 deletions src/eez/modules/psu/dlog_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,6 @@ void openFile(const char *filePath) {
g_recording.getValue = getValue;
g_isLoading = false;

g_showLabels = true;

if (yAxisHasDifferentUnits(g_recording)) {
autoScale(g_recording);
}
Expand Down
1 change: 0 additions & 1 deletion src/eez/modules/psu/scpi/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ scpi_result_t scpi_cmd_displayDataQ(scpi_t *context) {
scpi_result_t scpi_cmd_displayWindowDlog(scpi_t *context) {
#if OPTION_DISPLAY && OPTION_SD_CARD
dlog_view::g_showLatest = true;
dlog_view::g_showLabels = false;
psu::gui::g_psuAppContext.pushPageOnNextIter(PAGE_ID_DLOG_VIEW);
return SCPI_RES_OK;
#else
Expand Down

0 comments on commit 98fbbf5

Please sign in to comment.