queue for erase/set credentials

This commit is contained in:
fourtf
2019-09-14 22:58:53 +02:00
parent 13d1fab303
commit 9bbc4f8a5e
8 changed files with 122 additions and 18 deletions
+3 -1
View File
@@ -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));
}
+4 -1
View File
@@ -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);