mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Show a detailed error when the tagreader executable couldn't be started.
This commit is contained in:
parent
31f423a0ff
commit
ccb3a0aa3a
@ -33,12 +33,19 @@ TagReaderClient::TagReaderClient(QObject* parent)
|
||||
sInstance = this;
|
||||
|
||||
worker_pool_->SetExecutableName(kWorkerExecutableName);
|
||||
connect(worker_pool_, SIGNAL(WorkerFailedToStart()), SLOT(WorkerFailedToStart()));
|
||||
}
|
||||
|
||||
void TagReaderClient::Start() {
|
||||
worker_pool_->Start();
|
||||
}
|
||||
|
||||
void TagReaderClient::WorkerFailedToStart() {
|
||||
qLog(Error) << "The" << kWorkerExecutableName << "executable was not found"
|
||||
<< "in the current directory or on the PATH. Clementine will"
|
||||
<< "not be able to read music file tags without it.";
|
||||
}
|
||||
|
||||
TagReaderReply* TagReaderClient::ReadFile(const QString& filename) {
|
||||
pb::tagreader::Message message;
|
||||
pb::tagreader::ReadFileRequest* req = message.mutable_read_file_request();
|
||||
|
@ -57,6 +57,9 @@ public:
|
||||
// TODO: Make this not a singleton
|
||||
static TagReaderClient* Instance() { return sInstance; }
|
||||
|
||||
private slots:
|
||||
void WorkerFailedToStart();
|
||||
|
||||
private:
|
||||
static TagReaderClient* sInstance;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user