Skip to content

Commit

Permalink
When debugger becomes paused switch away from build log automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed Apr 24, 2024
1 parent bc359fd commit a297b69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/store/features/debugger/debuggerState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const debuggerSlice = createSlice({
reducers: {
disconnect: (state) => {
state.initialized = false;
state.isPaused = false;
},
setSymbols: (
state,
Expand All @@ -63,6 +64,10 @@ const debuggerSlice = createSlice({
isPaused: boolean;
}>
) => {
if (!state.isPaused && action.payload.isPaused) {
// Debugger became paused, close build log
state.isLogOpen = false;
}
state.isPaused = action.payload.isPaused;
state.vramPreview = action.payload.vramPreview;
if (!isEqual(state.variablesData, action.payload.variablesData)) {
Expand Down

0 comments on commit a297b69

Please sign in to comment.