mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-22 16:19:51 +01:00
Move to Avalonia 12.1.4
12.1.3 stops drawing a stretched PathGeometry, which took the Discord icon, so this goes one patch past the version Dependabot offered. Three things follow from the new version. A combo box placeholder keeps its full opacity. The consist strip's padding, ignored until now, is gone, as it would take 4 px from the panels above. A scenery picked from code is brought into view.
This commit is contained in:
@@ -14,6 +14,7 @@ using Avalonia.Input;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Layout;
|
||||
using Avalonia.Media.Imaging;
|
||||
using Avalonia.Threading;
|
||||
using Avalonia.VisualTree;
|
||||
using StarterNG.Classes;
|
||||
using StarterNG.Domain;
|
||||
@@ -378,6 +379,9 @@ public partial class Scenarios : UserControl
|
||||
}
|
||||
Scenery selectedScn = Sceneries[tag];
|
||||
|
||||
// A scenery picked from code stays out of sight otherwise; after layout, as its group may have just opened.
|
||||
Dispatcher.UIThread.Post(item.BringIntoView, DispatcherPriority.Loaded);
|
||||
|
||||
// The scenery is the one started from now on, whether or not it lists a
|
||||
// consist: left as it was, a scenery with none - or none the filters show -
|
||||
// started the one picked before.
|
||||
|
||||
Reference in New Issue
Block a user