modify translator.toggle func
This commit is contained in:
@@ -55,10 +55,10 @@ export class Translator {
|
|||||||
|
|
||||||
toggle = () => {
|
toggle = () => {
|
||||||
if (this._rule.transOpen === "true") {
|
if (this._rule.transOpen === "true") {
|
||||||
this._rule.transOpen = "false";
|
this._rule = { ...this._rule, transOpen: "false" };
|
||||||
this._unRegister();
|
this._unRegister();
|
||||||
} else {
|
} else {
|
||||||
this._rule.transOpen = "true";
|
this._rule = { ...this._rule, transOpen: "true" };
|
||||||
this._register();
|
this._register();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user