From 5d0979480ff50390b3883795ec2093e0d3d6193b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 22 Aug 2022 22:22:29 +0200 Subject: Open episodes without Prolog. --- c/episodelistview.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'c/episodelistview.cpp') diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp index 6caff99..14aa192 100644 --- a/c/episodelistview.cpp +++ b/c/episodelistview.cpp @@ -7,6 +7,7 @@ #include "data.h" #include "datalistview.h" #include "episodelistview.h" +#include "ext.h" #include "listview.h" #include "pl.h" #include "util.h" @@ -68,25 +69,20 @@ void EpisodeListView::HandleContextMenu(const WORD command) /* Process other commands. */ switch (command) { case IDM_WATCH_LOCALLY: - if (!Pl("local_episode","open_episode_locally",lvi.lParam)) + if(!OpenLocally(lvi.lParam)) cNotFound++; break; case IDM_WATCH_ONLINE: - Pl("local_episode","open_episode_online",lvi.lParam); + OpenOnline(lvi.lParam); break; case IDM_TOGGLE: e.bWatched = !e.bWatched; break; - case IDM_FORGET: - Pl("track_episodes","forget_episode",lvi.lParam); - Pl("track_episodes","update_tracked_episodes"); - break; - case IDM_WIKI: - Pl("episode_data","open_episode_wiki",lvi.lParam); + OpenWiki(lvi.lParam); break; } } -- cgit v1.2.3