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
|
connection->setRealName(this->data_->real.isEmpty() ? this->data_->user
|
||||||
: this->data_->nick);
|
: this->data_->nick);
|
||||||
|
|
||||||
#if 0
|
if (getSettings()->enableExperimentalIrc)
|
||||||
|
{
|
||||||
switch (this->data_->authType)
|
switch (this->data_->authType)
|
||||||
{
|
{
|
||||||
case IrcAuthType::Sasl:
|
case IrcAuthType::Sasl:
|
||||||
|
@ -88,7 +89,7 @@ void IrcServer::initializeConnection(IrcConnection *connection,
|
||||||
default:
|
default:
|
||||||
this->open(Both);
|
this->open(Both);
|
||||||
}
|
}
|
||||||
#endif
|
}
|
||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
connection, &Communi::IrcConnection::socketError, this,
|
connection, &Communi::IrcConnection::socketError, this,
|
||||||
|
|
|
@ -203,6 +203,7 @@ public:
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
BoolSetting useKeyring = {"/misc/useKeyring", true};
|
BoolSetting useKeyring = {"/misc/useKeyring", true};
|
||||||
#endif
|
#endif
|
||||||
|
BoolSetting enableExperimentalIrc = {"/misc/experimentalIrc", false};
|
||||||
|
|
||||||
IntSetting startUpNotification = {"/misc/startUpNotification", 0};
|
IntSetting startUpNotification = {"/misc/startUpNotification", 0};
|
||||||
QStringSetting currentVersion = {"/misc/currentVersion", ""};
|
QStringSetting currentVersion = {"/misc/currentVersion", ""};
|
||||||
|
|
|
@ -190,9 +190,13 @@ SelectChannelDialog::SelectChannelDialog(QWidget *parent)
|
||||||
|
|
||||||
auto tab = notebook->addPage(obj.getElement());
|
auto tab = notebook->addPage(obj.getElement());
|
||||||
tab->setCustomTitle("Irc (Beta)");
|
tab->setCustomTitle("Irc (Beta)");
|
||||||
|
|
||||||
|
if (!getSettings()->enableExperimentalIrc)
|
||||||
|
{
|
||||||
tab->setEnable(false);
|
tab->setEnable(false);
|
||||||
tab->setVisible(false);
|
tab->setVisible(false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
layout->setStretchFactor(notebook.getElement(), 1);
|
layout->setStretchFactor(notebook.getElement(), 1);
|
||||||
|
|
||||||
|
@ -220,9 +224,10 @@ SelectChannelDialog::SelectChannelDialog(QWidget *parent)
|
||||||
|
|
||||||
// restore ui state
|
// restore ui state
|
||||||
// fourtf: enable when releasing irc
|
// fourtf: enable when releasing irc
|
||||||
#if 0
|
if (getSettings()->enableExperimentalIrc)
|
||||||
|
{
|
||||||
this->ui_.notebook->selectIndex(getSettings()->lastSelectChannelTab);
|
this->ui_.notebook->selectIndex(getSettings()->lastSelectChannelTab);
|
||||||
#endif
|
}
|
||||||
|
|
||||||
this->ui_.irc.servers->getTableView()->selectRow(
|
this->ui_.irc.servers->getTableView()->selectRow(
|
||||||
getSettings()->lastSelectIrcConn);
|
getSettings()->lastSelectIrcConn);
|
||||||
|
|
|
@ -497,7 +497,9 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
||||||
layout.addCheckbox("Load message history on connect",
|
layout.addCheckbox("Load message history on connect",
|
||||||
s.loadTwitchMessageHistoryOnConnect);
|
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);
|
s.showUnhandledIrcMessages);
|
||||||
|
|
||||||
layout.addTitle("Cache");
|
layout.addTitle("Cache");
|
||||||
|
|
Loading…
Reference in a new issue