mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-27 05:39:10 +00:00
Some cosmetic changes in settigs setters
This commit is contained in:
parent
3967052375
commit
6374d4eeda
@ -233,9 +233,7 @@ void SetScaleFactor() {
|
|||||||
void SetIconTheme() {
|
void SetIconTheme() {
|
||||||
Core::Sandbox::Instance().customEnterFromEventLoop([] {
|
Core::Sandbox::Instance().customEnterFromEventLoop([] {
|
||||||
const auto integration = GtkIntegration::Instance();
|
const auto integration = GtkIntegration::Instance();
|
||||||
|
if (!integration || !IconThemeShouldBeSet()) {
|
||||||
if (!integration
|
|
||||||
|| !IconThemeShouldBeSet()) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,9 +268,7 @@ void SetIconTheme() {
|
|||||||
void SetCursorSize() {
|
void SetCursorSize() {
|
||||||
Core::Sandbox::Instance().customEnterFromEventLoop([] {
|
Core::Sandbox::Instance().customEnterFromEventLoop([] {
|
||||||
const auto integration = GtkIntegration::Instance();
|
const auto integration = GtkIntegration::Instance();
|
||||||
|
if (!integration || !CursorSizeShouldBeSet()) {
|
||||||
if (!integration
|
|
||||||
|| !CursorSizeShouldBeSet()) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user