Chore: Proper Lambda Formatting (#2167)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Leon Richardt
2020-11-08 12:02:19 +01:00
committed by GitHub
parent fbd5df53d8
commit 0eed45ae67
71 changed files with 712 additions and 415 deletions
+6 -3
View File
@@ -164,8 +164,9 @@ void runGui(QApplication &a, Paths &paths, Settings &settings)
initResources();
initSignalHandler();
settings.restartOnCrash.connect(
[](const bool &value) { restartOnSignal = value; });
settings.restartOnCrash.connect([](const bool &value) {
restartOnSignal = value;
});
auto thread = std::thread([dir = paths.miscDirectory] {
{
@@ -186,7 +187,9 @@ void runGui(QApplication &a, Paths &paths, Settings &settings)
// Clear the cache 1 minute after start.
QTimer::singleShot(60 * 1000, [cachePath = paths.cacheDirectory()] {
QtConcurrent::run([cachePath]() { clearCache(cachePath); });
QtConcurrent::run([cachePath]() {
clearCache(cachePath);
});
});
chatterino::NetworkManager::init();