mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: gtk_init() called 2x in AtomBrowserMainParts (#20012)
Fixes #19984.
This commit is contained in:
@@ -460,10 +460,6 @@ void AtomBrowserMainParts::PreMainMessageLoopRun() {
|
||||
if (command_line->HasSwitch(switches::kRemoteDebuggingPort))
|
||||
DevToolsManagerDelegate::StartHttpHandler();
|
||||
|
||||
#if defined(USE_X11)
|
||||
libgtkui::GtkInitFromCommandLine(*base::CommandLine::ForCurrentProcess());
|
||||
#endif
|
||||
|
||||
#if !defined(OS_MACOSX)
|
||||
// The corresponding call in macOS is in AtomApplicationDelegate.
|
||||
Browser::Get()->WillFinishLaunching();
|
||||
|
||||
Reference in New Issue
Block a user