try to index media immediately on import

Since indexing is supplemental, it can be made a background task that can occur
at more or less any time. So we run it as soon as possible.
This commit is contained in:
itsmattkc
2020-01-17 03:58:29 +11:00
parent 63b3c60017
commit 653709dc84
28 changed files with 410 additions and 735 deletions
+1 -13
View File
@@ -41,16 +41,7 @@ class TaskViewItem : public QFrame
{
Q_OBJECT
public:
TaskViewItem(QWidget* parent);
/**
* @brief Connects a Task to this object
*
* If a Task has already been connected, this will disconnect this TaskViewItem from the previously connected
* Task before connecting to the next one - however there are very few circumstances where this would be necessary
* since TaskViewItem is designed to delete itself when a Task is complete.
*/
void SetTask(Task* t);
TaskViewItem(Task *task, QWidget* parent = nullptr);
private:
QLabel* task_name_lbl_;
@@ -60,9 +51,6 @@ private:
Task* task_;
private slots:
void TaskStatusChange(Task::Status status);
};
#endif // TASKVIEWITEM_H