Chore: Proper Lambda Formatting (#2167)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
+6
-3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user