mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
ammend 2.1.5 added setting for experimental irc support
This commit is contained in:
parent
2c25c8a5f5
commit
ca0db97d09
4 changed files with 35 additions and 26 deletions
|
@ -66,7 +66,8 @@ void IrcServer::initializeConnection(IrcConnection *connection,
|
|||
connection->setRealName(this->data_->real.isEmpty() ? this->data_->user
|
||||
: this->data_->nick);
|
||||
|
||||
#if 0
|
||||
if (getSettings()->enableExperimentalIrc)
|
||||
{
|
||||
switch (this->data_->authType)
|
||||
{
|
||||
case IrcAuthType::Sasl:
|
||||
|
@ -88,7 +89,7 @@ void IrcServer::initializeConnection(IrcConnection *connection,
|
|||
default:
|
||||
this->open(Both);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
QObject::connect(
|
||||
connection, &Communi::IrcConnection::socketError, this,
|
||||
|
|
|
@ -203,6 +203,7 @@ public:
|
|||
#ifdef Q_OS_LINUX
|
||||
BoolSetting useKeyring = {"/misc/useKeyring", true};
|
||||
#endif
|
||||
BoolSetting enableExperimentalIrc = {"/misc/experimentalIrc", false};
|
||||
|
||||
IntSetting startUpNotification = {"/misc/startUpNotification", 0};
|
||||
QStringSetting currentVersion = {"/misc/currentVersion", ""};
|
||||
|
|
|
@ -190,9 +190,13 @@ SelectChannelDialog::SelectChannelDialog(QWidget *parent)
|
|||
|
||||
auto tab = notebook->addPage(obj.getElement());
|
||||
tab->setCustomTitle("Irc (Beta)");
|
||||
|
||||
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
|
||||
if (getSettings()->enableExperimentalIrc)
|
||||
{
|
||||
this->ui_.notebook->selectIndex(getSettings()->lastSelectChannelTab);
|
||||
#endif
|
||||
}
|
||||
|
||||
this->ui_.irc.servers->getTableView()->selectRow(
|
||||
getSettings()->lastSelectIrcConn);
|
||||
|
|
|
@ -497,7 +497,9 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
|||
layout.addCheckbox("Load message history on connect",
|
||||
s.loadTwitchMessageHistoryOnConnect);
|
||||
|
||||
layout.addCheckbox("Show unhandled irc messages",
|
||||
layout.addCheckbox("Enable experimental IRC support (requires restart)",
|
||||
s.enableExperimentalIrc);
|
||||
layout.addCheckbox("Show unhandled IRC messages",
|
||||
s.showUnhandledIrcMessages);
|
||||
|
||||
layout.addTitle("Cache");
|
||||
|
|
Loading…
Reference in a new issue