chore: remove Singleton & replace getIApp with getApp (#5514)
This commit is contained in:
@@ -31,7 +31,7 @@ void GIFTimer::initialize()
|
||||
|
||||
this->position_ += GIF_FRAME_LENGTH;
|
||||
this->signal.invoke();
|
||||
getIApp()->getWindows()->repaintGifEmotes();
|
||||
getApp()->getWindows()->repaintGifEmotes();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ LoggingChannel::LoggingChannel(QString _channelName, QString _platform)
|
||||
|
||||
getSettings()->logPath.connect([this](const QString &logPath, auto) {
|
||||
this->baseDirectory = logPath.isEmpty()
|
||||
? getIApp()->getPaths().messageLogDirectory
|
||||
? getApp()->getPaths().messageLogDirectory
|
||||
: logPath;
|
||||
this->openLogFile();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user