trigger componentDidUpdate when switching tabs and sessions

This commit is contained in:
Red Adaya 2024-04-11 22:27:46 +08:00
parent d2ddf7bc58
commit 32342629c8
2 changed files with 4 additions and 1 deletions

View File

@ -120,6 +120,9 @@ class TermStyleBlock extends React.Component<{
}
render() {
GlobalModel.getActiveSession();
GlobalModel.getActiveScreen();
return null;
}
}

View File

@ -1097,7 +1097,7 @@ class Model {
const activeScreen = this.getActiveScreen();
if (activeScreen?.getCurRemoteInstance() != null) {
setTimeout(() => {
GlobalCommandRunner.syncShellState();
// GlobalCommandRunner.syncShellState();
}, 100);
}
}