mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-12 01:01:50 +01:00
fix: pass missing config to setTimeout in getSpareTab (#1627)
- Fixed an issue where `fullConfig` was not passed to `setTimeout` in `getSpareTab`. - Wrapped `ensureHotSpareTab` with an arrow function to ensure `fullConfig` is properly passed. **When I use wave as my terminal, sometimes the setting does not work. I read the source code and found this issue** Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
This commit is contained in:
parent
9c8084a063
commit
d833f57214
@ -263,7 +263,7 @@ export function ensureHotSpareTab(fullConfig: FullConfigType) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getSpareTab(fullConfig: FullConfigType): WaveTabView {
|
export function getSpareTab(fullConfig: FullConfigType): WaveTabView {
|
||||||
setTimeout(ensureHotSpareTab, 500);
|
setTimeout(() => ensureHotSpareTab(fullConfig), 500);
|
||||||
if (HotSpareTab != null) {
|
if (HotSpareTab != null) {
|
||||||
const rtn = HotSpareTab;
|
const rtn = HotSpareTab;
|
||||||
HotSpareTab = null;
|
HotSpareTab = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user