2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 15:15:13 +00:00

Fix some lines length in specific_linux

This commit is contained in:
Ilya Fedin
2021-03-02 14:22:50 +04:00
committed by John Preston
parent 37a8afaddf
commit a29ff093f6

View File

@@ -621,7 +621,9 @@ std::optional<bool> 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;