diff --git a/ftl/core-repo b/ftl/core-repo index d2e9201d6..ca04132a8 160000 --- a/ftl/core-repo +++ b/ftl/core-repo @@ -1 +1 @@ -Subproject commit d2e9201d62b906b029570931e9567fe8cf1889b6 +Subproject commit ca04132a8f82296f3e0ea22b74bb4221e1d11d3f diff --git a/ftl/core/preferences.ftl b/ftl/core/preferences.ftl index 7c75904eb..ce24df434 100644 --- a/ftl/core/preferences.ftl +++ b/ftl/core/preferences.ftl @@ -85,10 +85,10 @@ preferences-third-party-description = Third-party services are unaffiliated with ## URL scheme related preferences-url-schemes = URL Schemes -preferences-url-scheme-prompt = Allowed { preferences-url-schemes } (space-separated): +preferences-url-scheme-prompt = Allowed URL Schemes (space-separated): preferences-url-scheme-warning = Blocked attempt to open `{ $link }`, which may be a security issue. - If you trust the deck author and wish to proceed, you can add `{ $scheme }` to your allowed { preferences-url-schemes }. + If you trust the deck author and wish to proceed, you can add `{ $scheme }` to your allowed URL Schemes. preferences-url-scheme-allow-once = Allow Once preferences-url-scheme-always-allow = Always Allow diff --git a/ftl/qt-repo b/ftl/qt-repo index 5b855702d..f35acabb4 160000 --- a/ftl/qt-repo +++ b/ftl/qt-repo @@ -1 +1 @@ -Subproject commit 5b855702dfe191e06cc3fbef4b684acc094500ec +Subproject commit f35acabb46dc9197a62c47eb7f2ca062628b1d94 diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index fb9222521..cdbd05ebe 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -87,7 +87,7 @@ except AttributeError: appVersion = _version appWebsite = "https://apps.ankiweb.net/" appWebsiteDownloadSection = "https://apps.ankiweb.net/#download" -appDonate = "https://apps.ankiweb.net/support/" +appDonate = "https://docs.ankiweb.net/contrib.html" appShared = "https://ankiweb.net/shared/" appUpdate = "https://ankiweb.net/update/desktop" appHelpSite = HELP_SITE diff --git a/qt/aqt/about.py b/qt/aqt/about.py index bf34e4395..fb90a9355 100644 --- a/qt/aqt/about.py +++ b/qt/aqt/about.py @@ -222,9 +222,11 @@ def show(mw: aqt.AnkiQt) -> QDialog: "🦙 (siid)", "Mukunda Madhav Dey", "Adnane Taghi", + "Anon_0000", ) ) + allusers = [user.replace(" ", " ") for user in allusers] abouttext += "

" + tr.about_written_by_damien_elmes_with_patches( cont=", ".join(allusers) + f", {tr.about_and_others()}" ) diff --git a/ts/routes/card-info/forgetting-curve.ts b/ts/routes/card-info/forgetting-curve.ts index 714032958..c2a9f2580 100644 --- a/ts/routes/card-info/forgetting-curve.ts +++ b/ts/routes/card-info/forgetting-curve.ts @@ -339,8 +339,11 @@ export function renderForgettingCurve( 1, ); let text = tooltipText(d); + const desiredRetentionPercent = desiredRetention * 100; if (y2 >= lineY - 10 && y2 <= lineY + 10) { - text += `
${tr.cardStatsFsrsForgettingCurveDesiredRetention()}: ${desiredRetention.toFixed(2)}`; + text += `
${tr.cardStatsFsrsForgettingCurveDesiredRetention()}: ${ + desiredRetentionPercent.toFixed(0) + }%`; } showTooltip(text, x1, y1); }) diff --git a/ts/routes/editor/image-overlay/ImageOverlay.svelte b/ts/routes/editor/image-overlay/ImageOverlay.svelte index 8376f3330..8aee3bfc9 100644 --- a/ts/routes/editor/image-overlay/ImageOverlay.svelte +++ b/ts/routes/editor/image-overlay/ImageOverlay.svelte @@ -303,7 +303,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html /> - {#if isSizeConstrained} + {#if isSizeConstrained && !shrinkingDisabled} {`(${tr.editingDoubleClickToExpand()})`} {:else} {actualWidth}×{actualHeight} diff --git a/ts/routes/image-occlusion/mask-editor.ts b/ts/routes/image-occlusion/mask-editor.ts index fb29977cd..c5492d413 100644 --- a/ts/routes/image-occlusion/mask-editor.ts +++ b/ts/routes/image-occlusion/mask-editor.ts @@ -116,7 +116,6 @@ function initCanvas(): fabric.Canvas { modifiedPolygon(canvas, evt.target); undoStack.onObjectModified(); } - saveNeededStore.set(true); }); canvas.on("text:editing:entered", function() { textEditingState.set(true); diff --git a/ts/routes/image-occlusion/tools/lib.ts b/ts/routes/image-occlusion/tools/lib.ts index 13313b07e..740f135af 100644 --- a/ts/routes/image-occlusion/tools/lib.ts +++ b/ts/routes/image-occlusion/tools/lib.ts @@ -4,7 +4,7 @@ import { fabric } from "fabric"; import { get } from "svelte/store"; -import { opacityStateStore } from "../store"; +import { opacityStateStore, saveNeededStore } from "../store"; import type { Size } from "../types"; export const SHAPE_MASK_COLOR = "#ffeba2"; @@ -244,6 +244,7 @@ const setShapePosition = ( } object.setCoords(); + saveNeededStore.set(true); }; export function enableUniformScaling(canvas: fabric.Canvas, obj: fabric.Object): void { diff --git a/ts/routes/image-occlusion/tools/tool-undo-redo.ts b/ts/routes/image-occlusion/tools/tool-undo-redo.ts index 187a8b33d..0785d3908 100644 --- a/ts/routes/image-occlusion/tools/tool-undo-redo.ts +++ b/ts/routes/image-occlusion/tools/tool-undo-redo.ts @@ -117,7 +117,7 @@ class UndoStack { private push(): void { const entry = JSON.stringify(this.canvas?.toJSON(["id"])); - if (entry === this.stack[this.stack.length - 1]) { + if (entry === this.stack[this.index]) { return; } this.stack.length = this.index + 1;