diff --git a/flatpak/com.github.ransome1.sleek.appdata.xml b/flatpak/com.github.ransome1.sleek.appdata.xml
index 45dc242a..b2d10616 100755
--- a/flatpak/com.github.ransome1.sleek.appdata.xml
+++ b/flatpak/com.github.ransome1.sleek.appdata.xml
@@ -9,7 +9,7 @@
Robin Ahle
-
+
https://github.com/ransome1/sleek
https://github.com/ransome1/sleek/issues
diff --git a/package.json b/package.json
index 226509ca..0c640081 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "sleek",
- "version": "2.0.12-rc.5",
+ "version": "2.0.12",
"main": "./src/main/main.tsx",
"scripts": {
"build": "concurrently \"yarn run peggy\" \"yarn run build:main\" \"yarn run build:renderer\"",
diff --git a/release/app/package.json b/release/app/package.json
index 39e91503..6b09d45a 100644
--- a/release/app/package.json
+++ b/release/app/package.json
@@ -1,6 +1,6 @@
{
"name": "sleek",
- "version": "2.0.12-rc.5",
+ "version": "2.0.12",
"description": "todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)",
"synopsis": "todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)",
"keywords": [
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 29c38052..2a7b3335 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -1,6 +1,6 @@
name: sleek
base: core20
-version: "2.0.12-rc.5"
+version: "2.0.12"
summary: todo.txt manager for Linux, free and open-source (FOSS)
description: |
sleek is an open-source (FOSS) todo manager based on the todo.txt syntax. Stripped down to only the most necessary features, and with a clean and simple interface, sleek aims to help you focus on getting things done.
diff --git a/src/renderer/Dialog/Dialog.tsx b/src/renderer/Dialog/Dialog.tsx
index d590d650..c1e1a5cf 100644
--- a/src/renderer/Dialog/Dialog.tsx
+++ b/src/renderer/Dialog/Dialog.tsx
@@ -105,7 +105,9 @@ const DialogComponent: React.FC = memo(({
} else {
updatedValue = value;
}
+
ipcRenderer.send('updateTodoObject', todoObject?.id, textFieldValue, type, updatedValue);
+
} catch(error: any) {
console.error(error);
}
@@ -115,12 +117,17 @@ const DialogComponent: React.FC = memo(({
if(todoObject) {
const updatedValue = todoObject.string?.replaceAll(String.fromCharCode(16), '\n') || '';
setTextFieldValue(updatedValue);
- updateAttributeFields(todoObject);
}
}, [todoObject]);
- useEffect(() => {
- if(textFieldValue) ipcRenderer.send('updateAttributeFields', todoObject?.id, textFieldValue)
+ useEffect(() => {
+ const handleTextFieldValue = () => {
+ if(textFieldValue) ipcRenderer.send('updateAttributeFields', todoObject?.id, textFieldValue)
+ };
+ const delayedSearch: NodeJS.Timeout = setTimeout(handleTextFieldValue, 100);
+ return () => {
+ clearTimeout(delayedSearch);
+ };
}, [textFieldValue]);
useEffect(() => {
diff --git a/yarn.lock b/yarn.lock
index 961d3408..ee05315d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2375,9 +2375,9 @@
xmlbuilder ">=11.0.1"
"@types/prop-types@*", "@types/prop-types@^15.7.11", "@types/prop-types@^15.7.3":
- version "15.7.11"
- resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.11.tgz#2596fb352ee96a1379c657734d4b913a613ad563"
- integrity sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==
+ version "15.7.12"
+ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.12.tgz#12bb1e2be27293c1406acb6af1c3f3a1481d98c6"
+ integrity sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==
"@types/qs@*":
version "6.9.14"
@@ -2435,9 +2435,9 @@
"@types/react" "*"
"@types/react@*", "@types/react@^18.0.26", "@types/react@^18.2.64":
- version "18.2.67"
- resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.67.tgz#96b7af0b5e79c756f4bdd981de2ca28472c858e5"
- integrity sha512-vkIE2vTIMHQ/xL0rgmuoECBCkZFZeHr49HeWSc24AptMbNRo7pwSBvj73rlJJs9fGKj0koS+V7kQB1jHS0uCgw==
+ version "18.2.69"
+ resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.69.tgz#313ec21891b22bb7646a54cb4bdb8cddb0880271"
+ integrity sha512-W1HOMUWY/1Yyw0ba5TkCV+oqynRjG7BnteBB+B7JmAK7iw3l2SW+VGOxL+akPweix6jk2NNJtyJKpn4TkpfK3Q==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"