Fix Canvas Size Units showing incorrectly

This commit is contained in:
manongjohn 2023-05-29 11:56:14 -04:00
parent 8861f5e46d
commit cf49bf66d6

View file

@ -548,7 +548,9 @@ CanvasSizePopup::CanvasSizePopup()
m_unit->addItem(tr("field"), "field");
m_unit->addItem(tr("inch"), "inch");
m_unit->setFixedHeight(DVGui::WidgetHeight);
m_unit->hide();
if (Preferences::instance()->isShowAdvancedOptionsEnabled()) {
m_unit->show();
addWidget(tr("Unit:"), m_unit);
connect(m_unit, SIGNAL(currentIndexChanged(int)), this,
SLOT(onUnitChanged(int)));