ENH: optimize media file user interface

Change-Id: Ic16133fd366fcbf41dd0c9535907786754186857
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2022-10-20 19:34:37 +08:00
1 parent aa2129280d
commit 37723752cd
8 files changed
+79 -36

No files matched your search

+4 -1
View File
@@ -95,6 +95,7 @@ public:
wxBitmap thumbnail;
int flags = 0;
int progress = -1; // -1: waiting
std::string path;
bool IsSelect() const { return flags & FF_SELECT; }
bool IsDownload() const { return flags & FF_DOWNLOAD; }
@@ -124,6 +125,8 @@ public:
void DownloadFiles(size_t index, std::string const &path);
void DownloadCheckFiles(std::string const &path);
void DownloadCancel(size_t index);
size_t GetCount() const;
@@ -164,7 +167,7 @@ private:
void DeleteFilesContinue();
void DownloadNextFile(std::string const &path);
void DownloadNextFile();
void UpdateFocusThumbnail();