From 35364193e3d24d47a8c2d970f70f696f2247e3bb Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 4 Mar 2025 23:26:05 +1100 Subject: launcher: math mode --- src/services/math.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/services/math.ts') diff --git a/src/services/math.ts b/src/services/math.ts index f5807ef..0cddf1b 100644 --- a/src/services/math.ts +++ b/src/services/math.ts @@ -103,7 +103,7 @@ export default class Math extends GObject.Object { } else if (equation.includes("=")) { const [left, right] = equation.split("="); try { - this.#variables[left.trim()] = simplify(right).toString(); + this.#variables[left.trim()] = simplify(right, this.#variables).toString(); } catch { this.#variables[left.trim()] = right.trim(); } -- cgit v1.2.3-freya