chore: remove Singleton & replace getIApp with getApp (#5514)
This commit is contained in:
@@ -22,7 +22,7 @@ namespace {
|
||||
|
||||
QString configPath()
|
||||
{
|
||||
return combinePath(getIApp()->getPaths().settingsDirectory, "irc.json");
|
||||
return combinePath(getApp()->getPaths().settingsDirectory, "irc.json");
|
||||
}
|
||||
|
||||
class Model : public SignalVectorModel<IrcServerData>
|
||||
|
||||
@@ -245,7 +245,7 @@ void IrcServer::privateMessageReceived(Communi::IrcPrivateMessage *message)
|
||||
|
||||
if (highlighted && showInMentions)
|
||||
{
|
||||
getIApp()->getTwitch()->getMentionsChannel()->addMessage(
|
||||
getApp()->getTwitch()->getMentionsChannel()->addMessage(
|
||||
msg, MessageContext::Original);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user