From 737932ed9a3b485c22353a0ca7eda65a78815788 Mon Sep 17 00:00:00 2001 From: sebastiii Date: Sat, 7 Dec 2013 16:37:49 +0100 Subject: [PATCH] Fork : Autocleanup disable. --- .../TVLibrary/TvPlugin/TvPlugin/TvRecorded.cs | 42 +++------------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/TvEngine3/TVLibrary/TvPlugin/TvPlugin/TvRecorded.cs b/TvEngine3/TVLibrary/TvPlugin/TvPlugin/TvRecorded.cs index 663b569..2a4ede5 100644 --- a/TvEngine3/TVLibrary/TvPlugin/TvPlugin/TvRecorded.cs +++ b/TvEngine3/TVLibrary/TvPlugin/TvPlugin/TvRecorded.cs @@ -303,47 +303,15 @@ namespace TvPlugin base.OnPageLoad(); InitViewSelections(); - // launch DeleteInvalidRecordings async for instant start of GUI screen - refresh GUI later, if recordings have been deleted - bool recordingsDeleted = false; - Object loadFacadeLock = new Object(); + //DeleteInvalidRecordings(); - new Thread(delegate() + if (btnCompress != null) { - { - try - { - recordingsDeleted = DeleteInvalidRecordings(); - } - catch (Exception ex) - { - Log.Debug("DeleteInvalidRecordings - error: " + ex.Message); - } - } - GUIWindowManager.SendThreadCallbackAndWait((p1, p2, data) => - { - { - if (recordingsDeleted) - { - Log.Debug("TvRecorded: recordings were deleted -> now update GUI"); - lock (loadFacadeLock) - { - UpdateGUI(); - } - } - else - { - Log.Debug("TvRecorded: no recordings were deleted -> skip GUI update"); - } - } - return 0; - }, 0, 0, null); - }) { Name = "DeleteInvalidRecordings", IsBackground = true, Priority = ThreadPriority.BelowNormal }.Start(); + btnCompress.Visible = false; + } LoadSettings(); - lock (loadFacadeLock) - { - LoadDirectory(); - } + LoadDirectory(); while (_iSelectedItem >= GetItemCount() && _iSelectedItem > 0) { -- 1.8.0.msysgit.0