Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Fixed a bug in which a to-do marked as completed or canceled was still
displayed in its original list after Alfred was called back.
  • Loading branch information
xilopaint committed Sep 30, 2017
1 parent 6782579 commit f259840
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 39 deletions.
Binary file modified Things.alfredworkflow
Binary file not shown.
43 changes: 5 additions & 38 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@
<string>Productivity</string>
<key>connections</key>
<dict>
<key>0E7FC725-EE4E-48A9-B257-BBA3A825B23B</key>
<array>
<dict>
<key>destinationuid</key>
<string>1943E391-FA03-4E97-80CC-91AA5E85AD64</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>229F7374-A1F9-4E12-90A9-0EB2E53BE6F2</key>
<array>
<dict>
Expand Down Expand Up @@ -51,7 +38,7 @@
<array>
<dict>
<key>destinationuid</key>
<string>0E7FC725-EE4E-48A9-B257-BBA3A825B23B</string>
<string>1943E391-FA03-4E97-80CC-91AA5E85AD64</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
Expand Down Expand Up @@ -197,7 +184,7 @@
<array>
<dict>
<key>destinationuid</key>
<string>0E7FC725-EE4E-48A9-B257-BBA3A825B23B</string>
<string>1943E391-FA03-4E97-80CC-91AA5E85AD64</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
Expand Down Expand Up @@ -273,7 +260,7 @@
<array>
<dict>
<key>destinationuid</key>
<string>0E7FC725-EE4E-48A9-B257-BBA3A825B23B</string>
<string>1943E391-FA03-4E97-80CC-91AA5E85AD64</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
Expand All @@ -299,7 +286,7 @@
<array>
<dict>
<key>destinationuid</key>
<string>0E7FC725-EE4E-48A9-B257-BBA3A825B23B</string>
<string>1943E391-FA03-4E97-80CC-91AA5E85AD64</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
Expand Down Expand Up @@ -708,19 +695,6 @@ fi #find</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>seconds</key>
<string>0.5</string>
</dict>
<key>type</key>
<string>alfred.workflow.utility.delay</string>
<key>uid</key>
<string>0E7FC725-EE4E-48A9-B257-BBA3A825B23B</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -899,13 +873,6 @@ This workflow relies on [qWorkflow][6] library by Ursan Razvan and [OneUpdater][
[8]:https://opensource.org/licenses/MIT</string>
<key>uidata</key>
<dict>
<key>0E7FC725-EE4E-48A9-B257-BBA3A825B23B</key>
<dict>
<key>xpos</key>
<integer>1740</integer>
<key>ypos</key>
<integer>580</integer>
</dict>
<key>1943E391-FA03-4E97-80CC-91AA5E85AD64</key>
<dict>
<key>xpos</key>
Expand Down Expand Up @@ -1079,7 +1046,7 @@ This workflow relies on [qWorkflow][6] library by Ursan Razvan and [OneUpdater][
</dict>
</dict>
<key>version</key>
<string>1.1.1</string>
<string>1.1.2</string>
<key>webaddress</key>
<string>https://github.com/xilopaint/alfred-things</string>
</dict>
Expand Down
3 changes: 2 additions & 1 deletion src/things.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ on showToDos(wf, theList)

add_result of wf with isValid given theUID:"", theArg:"back", theTitle:"Back to Lists", theAutocomplete:"", theSubtitle:theSubtitle, theIcon:"icons/back.png", theType:""


repeat with toDo in to dos of list theList
set toDoName to name of toDo
set theDueDate to due date of toDo as string
Expand Down Expand Up @@ -112,6 +111,7 @@ on markAsCompleted(argv, wf)
tell application "Things3"
set toDoCompleted to to do named (item 2 of argv as text)
set status of toDoCompleted to completed
delay 1.3
end tell
end markAsCompleted

Expand All @@ -120,6 +120,7 @@ on markAsCanceled(argv, wf)
tell application "Things3"
set toDoCompleted to to do named (item 2 of argv as text)
set status of toDoCompleted to canceled
delay 1.3
end tell
end markAsCanceled

Expand Down

0 comments on commit f259840

Please sign in to comment.