Browse Source

Fix typo: `ExternalGLibMainLoopExceptionLogger` (#19128)

pull/19136/head
Dragorn421 1 year ago
committed by GitHub
parent
commit
3df5139e0e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      samples/XEmbedSample/Program.cs
  2. 2
      src/Avalonia.X11/Dispatching/GLibDispatcherImpl.cs
  3. 4
      src/Avalonia.X11/X11Platform.cs

2
samples/XEmbedSample/Program.cs

@ -20,7 +20,7 @@ class Program
.With(new X11PlatformOptions() .With(new X11PlatformOptions()
{ {
UseGLibMainLoop = true, UseGLibMainLoop = true,
ExterinalGLibMainLoopExceptionLogger = e => Console.WriteLine(e.ToString()) ExternalGLibMainLoopExceptionLogger = e => Console.WriteLine(e.ToString())
}) })
.UseX11() .UseX11()
.SetupWithoutStarting(); .SetupWithoutStarting();

2
src/Avalonia.X11/Dispatching/GLibDispatcherImpl.cs

@ -237,7 +237,7 @@ internal class GlibDispatcherImpl :
} }
else else
{ {
var externalLogger = _platform.Options.ExterinalGLibMainLoopExceptionLogger; var externalLogger = _platform.Options.ExternalGLibMainLoopExceptionLogger;
if (externalLogger != null) if (externalLogger != null)
externalLogger.Invoke(e); externalLogger.Invoke(e);
else else

4
src/Avalonia.X11/X11Platform.cs

@ -384,8 +384,8 @@ namespace Avalonia
/// will likely brick GLib machinery since it's not aware of managed Exceptions /// will likely brick GLib machinery since it's not aware of managed Exceptions
/// This property allows to inspect such exceptions before they will be ignored /// This property allows to inspect such exceptions before they will be ignored
/// </summary> /// </summary>
public Action<Exception>? ExterinalGLibMainLoopExceptionLogger { get; set; } public Action<Exception>? ExternalGLibMainLoopExceptionLogger { get; set; }
public X11PlatformOptions() public X11PlatformOptions()
{ {
try try

Loading…
Cancel
Save