diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-24 21:21:26 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-24 21:21:26 +1100 |
| commit | ba4a879cc7c44187c429cea629e05b106ca75802 (patch) | |
| tree | c8afa1cb1c30f20af611363bb016057a13fa57cc /src/services | |
| parent | launcher: windows mode (diff) | |
| download | caelestia-shell-ba4a879cc7c44187c429cea629e05b106ca75802.tar.gz caelestia-shell-ba4a879cc7c44187c429cea629e05b106ca75802.tar.bz2 caelestia-shell-ba4a879cc7c44187c429cea629e05b106ca75802.zip | |
launcher: use scrollable
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/math.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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[] = []; |