From ba4a879cc7c44187c429cea629e05b106ca75802 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 24 Jan 2025 21:21:26 +1100 Subject: launcher: use scrollable --- src/services/math.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/services') diff --git a/src/services/math.ts b/src/services/math.ts index c66798c..14e90e0 100644 --- a/src/services/math.ts +++ b/src/services/math.ts @@ -1,5 +1,6 @@ import { GLib, GObject, property, readFile, register, writeFileAsync } from "astal"; import { derivative, evaluate, rationalize, simplify } from "mathjs/number"; +import { math as config } from "../../config"; export interface HistoryItem { equation: string; @@ -16,7 +17,7 @@ export default class Math extends GObject.Object { return this.instance; } - readonly #maxHistory = 20; + readonly #maxHistory = config.maxHistory; readonly #path = `${CACHE}/math-history.json`; readonly #history: HistoryItem[] = []; -- cgit v1.2.3-freya