diff --git a/src/Artemis.UI/Screens/ProfileEditor/ProfileEditorTitleBarView.axaml b/src/Artemis.UI/Screens/ProfileEditor/ProfileEditorTitleBarView.axaml
index 3a69989c8..f785ebfad 100644
--- a/src/Artemis.UI/Screens/ProfileEditor/ProfileEditorTitleBarView.axaml
+++ b/src/Artemis.UI/Screens/ProfileEditor/ProfileEditorTitleBarView.axaml
@@ -2,7 +2,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
xmlns:windowing="clr-namespace:FluentAvalonia.UI.Windowing;assembly=FluentAvalonia"
xmlns:profileEditor="clr-namespace:Artemis.UI.Screens.ProfileEditor"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
@@ -10,12 +9,6 @@
x:DataType="profileEditor:ProfileEditorTitleBarViewModel">
-
+
\ No newline at end of file
diff --git a/src/Artemis.UI/Screens/ProfileEditor/ProfileEditorTitleBarViewModel.cs b/src/Artemis.UI/Screens/ProfileEditor/ProfileEditorTitleBarViewModel.cs
index e33d8104c..21fb272b1 100644
--- a/src/Artemis.UI/Screens/ProfileEditor/ProfileEditorTitleBarViewModel.cs
+++ b/src/Artemis.UI/Screens/ProfileEditor/ProfileEditorTitleBarViewModel.cs
@@ -1,4 +1,5 @@
using Artemis.UI.Screens.ProfileEditor.MenuBar;
+using Artemis.UI.Screens.Root;
using Artemis.UI.Services.Interfaces;
using Artemis.UI.Shared;
@@ -6,18 +7,12 @@ namespace Artemis.UI.Screens.ProfileEditor;
public class ProfileEditorTitleBarViewModel : ViewModelBase
{
- private readonly IDebugService _debugService;
-
- public ProfileEditorTitleBarViewModel(IDebugService debugService, MenuBarViewModel menuBarViewModel)
+ public ProfileEditorTitleBarViewModel( MenuBarViewModel menuBarViewModel, DefaultTitleBarViewModel defaultTitleBarViewModel)
{
MenuBarViewModel = menuBarViewModel;
- _debugService = debugService;
+ DefaultTitleBarViewModel = defaultTitleBarViewModel;
}
public MenuBarViewModel MenuBarViewModel { get; }
-
- public void ShowDebugger()
- {
- _debugService.ShowDebugger();
- }
+ public DefaultTitleBarViewModel DefaultTitleBarViewModel { get; }
}
\ No newline at end of file
diff --git a/src/Artemis.UI/Screens/Root/DefaultTitleBarView.axaml b/src/Artemis.UI/Screens/Root/DefaultTitleBarView.axaml
index 975bc5e35..6bf80f5f8 100644
--- a/src/Artemis.UI/Screens/Root/DefaultTitleBarView.axaml
+++ b/src/Artemis.UI/Screens/Root/DefaultTitleBarView.axaml
@@ -8,7 +8,15 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:DataType="root:DefaultTitleBarViewModel"
x:Class="Artemis.UI.Screens.Root.DefaultTitleBarView">
-
+
+
+
+
\ No newline at end of file
diff --git a/src/Artemis.UI/Screens/Root/DefaultTitleBarViewModel.cs b/src/Artemis.UI/Screens/Root/DefaultTitleBarViewModel.cs
index 8a50d3113..a2199ede9 100644
--- a/src/Artemis.UI/Screens/Root/DefaultTitleBarViewModel.cs
+++ b/src/Artemis.UI/Screens/Root/DefaultTitleBarViewModel.cs
@@ -1,4 +1,5 @@
-using Artemis.UI.Services.Interfaces;
+using Artemis.UI.Screens.Workshop.CurrentUser;
+using Artemis.UI.Services.Interfaces;
using Artemis.UI.Shared;
namespace Artemis.UI.Screens.Root;
@@ -7,11 +8,14 @@ public class DefaultTitleBarViewModel : ViewModelBase
{
private readonly IDebugService _debugService;
- public DefaultTitleBarViewModel(IDebugService debugService)
+ public DefaultTitleBarViewModel(IDebugService debugService, CurrentUserViewModel currentUserViewModel)
{
_debugService = debugService;
+ CurrentUserViewModel = currentUserViewModel;
}
+ public CurrentUserViewModel CurrentUserViewModel { get; }
+
public void ShowDebugger()
{
_debugService.ShowDebugger();
diff --git a/src/Artemis.UI/Screens/Workshop/Search/SearchView.axaml b/src/Artemis.UI/Screens/Workshop/Search/SearchView.axaml
index f1650d9a6..63eb244a4 100644
--- a/src/Artemis.UI/Screens/Workshop/Search/SearchView.axaml
+++ b/src/Artemis.UI/Screens/Workshop/Search/SearchView.axaml
@@ -4,15 +4,15 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:search="clr-namespace:Artemis.UI.Screens.Workshop.Search"
xmlns:windowing="clr-namespace:FluentAvalonia.UI.Windowing;assembly=FluentAvalonia"
- xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Artemis.UI.Screens.Workshop.Search.SearchView"
x:DataType="search:SearchViewModel">
-
+
-
+
-
-
\ No newline at end of file
diff --git a/src/Artemis.UI/Screens/Workshop/Search/SearchViewModel.cs b/src/Artemis.UI/Screens/Workshop/Search/SearchViewModel.cs
index 88b0383fe..d6e0aa15f 100644
--- a/src/Artemis.UI/Screens/Workshop/Search/SearchViewModel.cs
+++ b/src/Artemis.UI/Screens/Workshop/Search/SearchViewModel.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
+using Artemis.UI.Screens.Root;
using Artemis.UI.Screens.Workshop.CurrentUser;
using Artemis.UI.Services.Interfaces;
using Artemis.UI.Shared;
@@ -24,19 +25,19 @@ public partial class SearchViewModel : ViewModelBase
[Notify] private SearchResultViewModel? _selectedEntry;
[Notify] private bool _isLoading;
- public SearchViewModel(ILogger logger, IWorkshopClient workshopClient, IWorkshopService workshopService, CurrentUserViewModel currentUserViewModel, IDebugService debugService)
+ public SearchViewModel(ILogger logger, IWorkshopClient workshopClient, IWorkshopService workshopService, IDebugService debugService, DefaultTitleBarViewModel defaultTitleBarViewModel)
{
_logger = logger;
_workshopClient = workshopClient;
_workshopService = workshopService;
_debugService = debugService;
- CurrentUserViewModel = currentUserViewModel;
+ DefaultTitleBarViewModel = defaultTitleBarViewModel;
SearchAsync = ExecuteSearchAsync;
this.WhenAnyValue(vm => vm.SelectedEntry).WhereNotNull().Subscribe(NavigateToEntry);
}
- public CurrentUserViewModel CurrentUserViewModel { get; }
+ public DefaultTitleBarViewModel DefaultTitleBarViewModel { get; }
public Func>> SearchAsync { get; }
diff --git a/src/Artemis.WebClient.Workshop/Handlers/UploadHandlers/Implementations/LayoutEntryUploadHandler.cs b/src/Artemis.WebClient.Workshop/Handlers/UploadHandlers/Implementations/LayoutEntryUploadHandler.cs
index e30bb2474..334055b3b 100644
--- a/src/Artemis.WebClient.Workshop/Handlers/UploadHandlers/Implementations/LayoutEntryUploadHandler.cs
+++ b/src/Artemis.WebClient.Workshop/Handlers/UploadHandlers/Implementations/LayoutEntryUploadHandler.cs
@@ -54,12 +54,6 @@ public class LayoutEntryUploadHandler : IEntryUploadHandler
CopyImage(layoutPath, customData.Image, archive);
}
}
-
- archiveStream.Seek(0, SeekOrigin.Begin);
- await using (FileStream fileStream = new(@"C:\Users\Robert\Desktop\layout-test.zip", FileMode.OpenOrCreate))
- {
- await archiveStream.CopyToAsync(fileStream, cancellationToken);
- }
archiveStream.Seek(0, SeekOrigin.Begin);
// Submit the archive