ammend 2.1.5 added setting for experimental irc support

This commit is contained in:
fourtf
2019-09-22 17:12:09 +02:00
parent 2c25c8a5f5
commit ca0db97d09
4 changed files with 35 additions and 26 deletions
+10 -5
View File
@@ -190,8 +190,12 @@ SelectChannelDialog::SelectChannelDialog(QWidget *parent)
auto tab = notebook->addPage(obj.getElement());
tab->setCustomTitle("Irc (Beta)");
tab->setEnable(false);
tab->setVisible(false);
if (!getSettings()->enableExperimentalIrc)
{
tab->setEnable(false);
tab->setVisible(false);
}
}
layout->setStretchFactor(notebook.getElement(), 1);
@@ -220,9 +224,10 @@ SelectChannelDialog::SelectChannelDialog(QWidget *parent)
// restore ui state
// fourtf: enable when releasing irc
#if 0
this->ui_.notebook->selectIndex(getSettings()->lastSelectChannelTab);
#endif
if (getSettings()->enableExperimentalIrc)
{
this->ui_.notebook->selectIndex(getSettings()->lastSelectChannelTab);
}
this->ui_.irc.servers->getTableView()->selectRow(
getSettings()->lastSelectIrcConn);