Some cosmetic changes in settigs setters

This commit is contained in:
Ilya Fedin 2021-01-23 16:03:24 +04:00 committed by John Preston
parent 3967052375
commit 6374d4eeda
1 changed files with 2 additions and 6 deletions

View File

@ -233,9 +233,7 @@ void SetScaleFactor() {
void SetIconTheme() {
Core::Sandbox::Instance().customEnterFromEventLoop([] {
const auto integration = GtkIntegration::Instance();
if (!integration
|| !IconThemeShouldBeSet()) {
if (!integration || !IconThemeShouldBeSet()) {
return;
}
@ -270,9 +268,7 @@ void SetIconTheme() {
void SetCursorSize() {
Core::Sandbox::Instance().customEnterFromEventLoop([] {
const auto integration = GtkIntegration::Instance();
if (!integration
|| !CursorSizeShouldBeSet()) {
if (!integration || !CursorSizeShouldBeSet()) {
return;
}