- Editor gefixt :) Sauberes Syntax hervorheben nun Fehler war, avalonia etc zu updaten! regelmäßig updates machen also xD
- UI Überarbeitet im ServerDashboard, bepinex status wird jetzt kleiner wenn nix weiter angezeigt wird und modliste größer. Löschen und update buttons eingefügt in modsliste TODO: Update und Delete function Mods, Ladeanimation für Modupload und so :P - Lschen und Update buttons in liste sollen ganz rechts immer sein!
This commit is contained in:
@@ -10,21 +10,9 @@ public partial class MainWindow : Window
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
// Loggen, sobald das Fenster ge<67>ffnet wurde (Layout fertig)
|
||||
this.Opened += (_, __) =>
|
||||
{
|
||||
Debug.WriteLine($"Window size after open: {Bounds.Width} x {Bounds.Height}");
|
||||
};
|
||||
|
||||
var locator = new ViewModelLocator();
|
||||
var mainVm = new MainWindowViewModel(locator);
|
||||
DataContext = mainVm;
|
||||
|
||||
// MainWindow ins ServerDashboardViewModel setzen
|
||||
if (locator.ServerDashboardViewModel is ServerDashboardViewModel dashboardVm)
|
||||
{
|
||||
dashboardVm.SetMainWindow(this); // <-- hier 'this' ist MainWindow
|
||||
}
|
||||
DataContext = mainVm;
|
||||
|
||||
this.DataContext = mainVm;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user