aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-02-16 16:56:28 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-02-16 16:56:28 +0100
commit7086bfe3e7bf04dd61f16216c659fc5534c2796a (patch)
tree90b5a4327a7815b758f29241a76b70efeea0bfd2 /c/main.c
parent8e70cba63a8109bc663f06c9e8b79a241a968bcc (diff)
downloadEpisodeBrowser-7086bfe3e7bf04dd61f16216c659fc5534c2796a.tar.gz
Make refresh smoother.
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/c/main.c b/c/main.c
index 1ff91f5..3bbf832 100644
--- a/c/main.c
+++ b/c/main.c
@@ -160,6 +160,9 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
PL_call_predicate(NULL, PL_Q_NORMAL,
PL_predicate("forget_episode", 1,
"track_episodes"), t);
+ PL_call_predicate(NULL, PL_Q_NORMAL,
+ PL_predicate("update_tracked_episodes",
+ 0, "track_episodes"), t);
ListView_RedrawItems(hElv,
g_iSelectedItem, g_iSelectedItem);
break;
@@ -290,5 +293,5 @@ UpdateLayout(HWND hWnd)
ListView_SetColumnWidth(hElv, 1,
rc.right-cxColumn-cxVScroll-4);
- ListView_EnsureVisible(hElv, g_iSelectedItem, TRUE);
+ //ListView_EnsureVisible(hElv, g_iSelectedItem, TRUE);
}