From a29ff093f6d15223af8e456e5c38c58022d43065 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 2 Mar 2021 14:22:50 +0400 Subject: [PATCH] Fix some lines length in specific_linux --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index a5bbb1a34..c9117643e 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -621,7 +621,9 @@ std::optional IsDarkMode() { } } - const auto themeName = integration->getStringSetting(qsl("gtk-theme-name")); + const auto themeName = integration->getStringSetting( + qsl("gtk-theme-name")); + if (!themeName.has_value()) { return std::nullopt; } else if (themeName->toLower().contains(qsl("-dark"))) { @@ -951,7 +953,9 @@ bool OpenSystemSettings(SystemSettingsType type) { add("pavucontrol"); add("alsamixergui"); return ranges::any_of(options, [](const Command &command) { - return QProcess::startDetached(command.command, command.arguments); + return QProcess::startDetached( + command.command, + command.arguments); }); } return true;