Check VR ability after series changed.
This commit is contained in:
@@ -451,6 +451,7 @@ void DefaultToolBar::resetNeedCheckFunctionButtons(){
|
|||||||
void DefaultToolBar::updateNeedCheckFunctionButtons(ViewFunctionState state)
|
void DefaultToolBar::updateNeedCheckFunctionButtons(ViewFunctionState state)
|
||||||
{
|
{
|
||||||
mBtnMPR->setEnabled(state.canMPR!=-1);
|
mBtnMPR->setEnabled(state.canMPR!=-1);
|
||||||
|
mBtnVR->setEnabled(state.canMPR!=-1);
|
||||||
if (state.canMPR!=-1){
|
if (state.canMPR!=-1){
|
||||||
for (int i = 0; i < 3; ++i) {
|
for (int i = 0; i < 3; ++i) {
|
||||||
if (i==state.canMPR){
|
if (i==state.canMPR){
|
||||||
|
|||||||
Reference in New Issue
Block a user