queue for erase/set credentials
This commit is contained in:
@@ -128,8 +128,10 @@ Irc::Irc()
|
||||
|
||||
this->abandonedChannels_[args.item.id] = abandoned;
|
||||
this->servers_.erase(server);
|
||||
}
|
||||
|
||||
// delete password
|
||||
if (args.caller != Irc::noEraseCredentialCaller)
|
||||
{
|
||||
Credentials::getInstance().erase("irc",
|
||||
getCredentialName(args.item));
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ class QAbstractTableModel;
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
//enum IrcAuthType { Anonymous, /*Sals,*/ Pass, MsgNickServ, NickServ };
|
||||
enum class IrcAuthType { Anonymous, Custom, Pass };
|
||||
|
||||
struct IrcServerData {
|
||||
QString host;
|
||||
@@ -38,6 +38,9 @@ public:
|
||||
|
||||
static Irc &getInstance();
|
||||
|
||||
static inline void *const noEraseCredentialCaller =
|
||||
reinterpret_cast<void *>(1);
|
||||
|
||||
UnsortedSignalVector<IrcServerData> connections;
|
||||
QAbstractTableModel *newConnectionModel(QObject *parent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user