Skip to content

Commit c5b5fad

Browse files
committed
Removed useless notifications and fixed background
colors when loading dome.
1 parent 6d6f8ad commit c5b5fad

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

relightlab/domepanel.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ void DomePanel::loadDomeFile() {
198198
if(path.isNull())
199199
return;
200200
loadDomeFile(path);
201+
setSphereSelected();
201202
}
202203

203204
void DomePanel::loadDomeFile(QString path) {

relightlab/processqueue.cpp

+7-5
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ void ProcessQueue::run() {
4444
task->wait(100);
4545

4646
if(task->isFinished()) {
47-
QString msg = task->status == Task::DONE ? "Done" : task->error;
48-
msg = task->output + "\n" + msg;
49-
emit finished(task->label, msg);
50-
51-
past.push_back(task);
47+
if(task->visible) {
48+
QString msg = task->status == Task::DONE ? "Done" : task->error;
49+
msg = task->output + "\n" + msg;
50+
emit finished(task->label, msg);
51+
}
52+
if(!task->owned)
53+
past.push_back(task);
5254
task = nullptr;
5355
emit update();
5456
}

0 commit comments

Comments
 (0)