Skip to content

Commit 342969c

Browse files
committed
Update dlog_view.cpp
1 parent 534f003 commit 342969c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/eez/modules/psu/dlog_view.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,11 @@ void stateManagment() {
204204
}
205205
} else if (isExecuting && !g_wasExecuting) {
206206
if (psu::gui::getActivePageId() == PAGE_ID_MAIN) {
207+
g_showLatest = true;
207208
gui::showPage(PAGE_ID_DLOG_VIEW);
208-
openFile(dlog_record::getLatestFilePath());
209-
}
209+
} else {
210+
eez::gui::refreshScreen();
211+
}
210212
}
211213
g_wasExecuting = isExecuting;
212214

@@ -2087,7 +2089,7 @@ void data_recording(DataOperationEnum operation, Cursor cursor, Value &value) {
20872089
} else if (operation == DATA_OPERATION_YT_DATA_GET_PERIOD) {
20882090
value = Value(recording.parameters.period, UNIT_SECOND);
20892091
} else if (operation == DATA_OPERATION_YT_DATA_GET_BOOKMARKS) {
2090-
value = Value(g_visibleBookmarks, VALUE_TYPE_POINTER);
2092+
value = Value(dlog_record::isExecuting() ? 0 : g_visibleBookmarks, VALUE_TYPE_POINTER);
20912093
} else if (operation == DATA_OPERATION_YT_DATA_IS_CURSOR_VISIBLE) {
20922094
value = &recording != &dlog_record::g_activeRecording;
20932095
} else if (operation == DATA_OPERATION_YT_DATA_GET_CURSOR_OFFSET) {

0 commit comments

Comments
 (0)