chore: remove Singleton & replace getIApp with getApp (#5514)

This commit is contained in:
pajlada
2024-07-21 15:09:59 +02:00
committed by GitHub
parent 21186df058
commit 5deec1f02f
145 changed files with 802 additions and 856 deletions
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -245,7 +245,7 @@ void IrcServer::privateMessageReceived(Communi::IrcPrivateMessage *message)
if (highlighted && showInMentions)
{
getIApp()->getTwitch()->getMentionsChannel()->addMessage(
getApp()->getTwitch()->getMentionsChannel()->addMessage(
msg, MessageContext::Original);
}
}