Skip to content

Commit

Permalink
Fixed #665. Bumping up version to 2.0.12 for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
ransome1 committed Mar 23, 2024
1 parent a307e54 commit 813894a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion flatpak/com.github.ransome1.sleek.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<developer_name>Robin Ahle</developer_name>
<content_rating type="oars-1.1"/>
<releases>
<release version="2.0.12-rc.5" date="2024-03-22"/>
<release version="2.0.12" date="2024-03-23"/>
</releases>
<url type="homepage">https://github.com/ransome1/sleek</url>
<url type="contact">https://github.com/ransome1/sleek/issues</url>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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\"",
Expand Down
2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
13 changes: 10 additions & 3 deletions src/renderer/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ const DialogComponent: React.FC<Props> = memo(({
} else {
updatedValue = value;
}

ipcRenderer.send('updateTodoObject', todoObject?.id, textFieldValue, type, updatedValue);

} catch(error: any) {
console.error(error);
}
Expand All @@ -115,12 +117,17 @@ const DialogComponent: React.FC<Props> = 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(() => {
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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" "*"
Expand Down

0 comments on commit 813894a

Please sign in to comment.