Commit f9787b13 authored by Jan Paul Batrina's avatar Jan Paul Batrina
Browse files

Only show one of "Hold" and "Resume" at a time

parent 07838676
......@@ -486,8 +486,8 @@ void PrintQueueUi::updateButtons()
}
ui->cancelJobPB->setEnabled(cancel);
ui->holdJobPB->setEnabled(hold);
ui->resumeJobPB->setEnabled(release);
ui->holdJobPB->setVisible(hold);
ui->resumeJobPB->setVisible(release);
ui->reprintPB->setEnabled(reprint);
}
......
......@@ -246,7 +246,7 @@
</item>
<item>
<widget class="QPushButton" name="holdJobPB">
<property name="enabled">
<property name="visible">
<bool>false</bool>
</property>
<property name="text">
......@@ -259,7 +259,7 @@
</item>
<item>
<widget class="QPushButton" name="resumeJobPB">
<property name="enabled">
<property name="visible">
<bool>false</bool>
</property>
<property name="text">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment