remove settings and paths from Application
This commit is contained in:
@@ -10,7 +10,7 @@ void GIFTimer::initialize()
|
||||
{
|
||||
this->timer.setInterval(30);
|
||||
|
||||
getApp()->settings->enableGifAnimations.connect([this](bool enabled, auto) {
|
||||
getSettings()->enableGifAnimations.connect([this](bool enabled, auto) {
|
||||
if (enabled) {
|
||||
this->timer.start();
|
||||
} else {
|
||||
|
||||
@@ -30,11 +30,11 @@ LoggingChannel::LoggingChannel(const QString &_channelName)
|
||||
|
||||
auto app = getApp();
|
||||
|
||||
app->settings->logPath.connect([this](const QString &logPath, auto) {
|
||||
getSettings()->logPath.connect([this](const QString &logPath, auto) {
|
||||
auto app = getApp();
|
||||
|
||||
if (logPath.isEmpty()) {
|
||||
this->baseDirectory = app->paths->messageLogDirectory;
|
||||
this->baseDirectory = getPaths()->messageLogDirectory;
|
||||
} else {
|
||||
this->baseDirectory = logPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user