mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Move gtk initialization back to ThirdParty::start
This commit is contained in:
@@ -747,15 +747,10 @@ void start() {
|
||||
|
||||
if (const auto integration = BaseGtkIntegration::Instance()) {
|
||||
integration->prepareEnvironment();
|
||||
integration->load();
|
||||
} else {
|
||||
g_warning("GTK integration is disabled, some features unavailable.");
|
||||
}
|
||||
|
||||
if (const auto integration = GtkIntegration::Instance()) {
|
||||
integration->load();
|
||||
}
|
||||
|
||||
#ifdef DESKTOP_APP_USE_PACKAGED_RLOTTIE
|
||||
g_warning(
|
||||
"Application has been built with foreign rlottie, "
|
||||
@@ -952,9 +947,14 @@ namespace ThirdParty {
|
||||
|
||||
void start() {
|
||||
if (const auto integration = BaseGtkIntegration::Instance()) {
|
||||
integration->load();
|
||||
integration->initializeSettings();
|
||||
}
|
||||
|
||||
if (const auto integration = GtkIntegration::Instance()) {
|
||||
integration->load();
|
||||
}
|
||||
|
||||
SetGtkScaleFactor();
|
||||
|
||||
// wait for interface announce to know if native window frame is supported
|
||||
|
Reference in New Issue
Block a user