mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
re-render terminal when theme is updated
This commit is contained in:
parent
85886afeb4
commit
80e1e3ce55
@ -32,7 +32,7 @@ import { MainSidebarModel } from "./mainsidebar";
|
|||||||
import { RightSidebarModel } from "./rightsidebar";
|
import { RightSidebarModel } from "./rightsidebar";
|
||||||
import { Screen } from "./screen";
|
import { Screen } from "./screen";
|
||||||
import { Cmd } from "./cmd";
|
import { Cmd } from "./cmd";
|
||||||
import { GlobalCommandRunner } from "./global";
|
import { GlobalCommandRunner, GlobalModel } from "./global";
|
||||||
import { clearMonoFontCache, getMonoFontSize } from "@/util/textmeasure";
|
import { clearMonoFontCache, getMonoFontSize } from "@/util/textmeasure";
|
||||||
import type { TermWrap } from "@/plugins/terminal/term";
|
import type { TermWrap } from "@/plugins/terminal/term";
|
||||||
import * as util from "@/util/util";
|
import * as util from "@/util/util";
|
||||||
@ -887,6 +887,7 @@ class Model {
|
|||||||
mobx.action(() => {
|
mobx.action(() => {
|
||||||
this.termThemeOptions.set(termThemeOptions);
|
this.termThemeOptions.set(termThemeOptions);
|
||||||
})();
|
})();
|
||||||
|
GlobalModel.bumpTermRenderVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
getTermThemeOptions(): TermThemeOptionsType {
|
getTermThemeOptions(): TermThemeOptionsType {
|
||||||
@ -900,7 +901,6 @@ class Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
runUpdate_internal(genUpdate: UpdatePacket, uiContext: UIContextType, interactive: boolean) {
|
runUpdate_internal(genUpdate: UpdatePacket, uiContext: UIContextType, interactive: boolean) {
|
||||||
console.log("got here", genUpdate);
|
|
||||||
if (genUpdate.type == "pty") {
|
if (genUpdate.type == "pty") {
|
||||||
const ptyMsg = genUpdate.data;
|
const ptyMsg = genUpdate.data;
|
||||||
if (isBlank(ptyMsg.remoteid)) {
|
if (isBlank(ptyMsg.remoteid)) {
|
||||||
@ -1014,7 +1014,6 @@ class Model {
|
|||||||
const userInputRequest: UserInputRequest = update.userinputrequest;
|
const userInputRequest: UserInputRequest = update.userinputrequest;
|
||||||
this.modalsModel.pushModal(appconst.USER_INPUT, userInputRequest);
|
this.modalsModel.pushModal(appconst.USER_INPUT, userInputRequest);
|
||||||
} else if (update.termthemeoptions != null) {
|
} else if (update.termthemeoptions != null) {
|
||||||
console.log("got termthemeoptions==============", update.termthemeoptions);
|
|
||||||
this.setTermThemeOptions(update.termthemeoptions);
|
this.setTermThemeOptions(update.termthemeoptions);
|
||||||
} else if (update.sessiontombstone != null || update.screentombstone != null) {
|
} else if (update.sessiontombstone != null || update.screentombstone != null) {
|
||||||
// nothing (ignore)
|
// nothing (ignore)
|
||||||
|
Loading…
Reference in New Issue
Block a user