Skip to content

Commit c6a1aa4

Browse files
committed
small fix in instruments terminal window
1 parent 65ccc3a commit c6a1aa4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/eez-studio-ui/_stylesheets/instrument.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@
344344
max-width: calc(100% - 40px);
345345
pre {
346346
user-select: text;
347-
max-height: 800px;
348347
overflow-y: auto;
349348
padding-right: 10px;
350349
}

packages/instrument/connection/connection-main.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,15 @@ export class Connection
274274

275275
logAnswer(data: string) {
276276
if (this.traceEnabled && data.trim().length > 0) {
277+
if (this.lastAnswerActivityLogId != undefined) {
278+
const activityLog = activityLogStore.findById(
279+
this.lastAnswerActivityLogId
280+
);
281+
if (!activityLog || activityLog.deleted) {
282+
this.lastAnswerActivityLogId = undefined;
283+
}
284+
}
285+
277286
if (this.lastAnswerActivityLogId != undefined) {
278287
this.lastAnswerActivityLogMessage += data;
279288

0 commit comments

Comments
 (0)