Skip to content

Commit c901bce

Browse files
committed
Merge branch 'development'
2 parents 00c510c + 9126601 commit c901bce

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

src/Artemis.UI.Shared/Routing/Router/Router.cs

+2
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ private void MainWindowServiceOnMainWindowOpened(object? sender, EventArgs e)
199199
{
200200
if (_previousWindowRoute != null && _currentRouteSubject.Value == "blank")
201201
Dispatcher.UIThread.InvokeAsync(async () => await Navigate(_previousWindowRoute, new RouterNavigationOptions {AddToHistory = false, EnableLogging = false}));
202+
else if (_currentRouteSubject.Value == null || _currentRouteSubject.Value == "blank")
203+
Dispatcher.UIThread.InvokeAsync(async () => await Navigate("home", new RouterNavigationOptions {AddToHistory = false, EnableLogging = true}));
202204
}
203205

204206
private void MainWindowServiceOnMainWindowClosed(object? sender, EventArgs e)

src/Artemis.UI/Screens/Root/RootViewModel.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ public RootViewModel(IRouter router,
9494
registrationService.RegisterBuiltInDataModelDisplays();
9595
registrationService.RegisterBuiltInDataModelInputs();
9696
registrationService.RegisterBuiltInPropertyEditors();
97-
98-
_router.Navigate("home");
9997
});
10098
}
10199

@@ -130,7 +128,9 @@ private bool ShouldShowUI()
130128
bool minimized = Constants.StartupArguments.Contains("--minimized");
131129
bool showOnAutoRun = _settingsService.GetSetting("UI.ShowOnStartup", true).Value;
132130

133-
return (autoRunning && showOnAutoRun) || !minimized;
131+
if (autoRunning)
132+
return showOnAutoRun;
133+
return !minimized;
134134
}
135135

136136
private void ShowSplashScreen()

src/Artemis.UI/Screens/Workshop/Library/Tabs/SubmissionsTabView.axaml

+18-14
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,24 @@
3636
<Button HorizontalAlignment="Center" Command="{CompiledBinding AddSubmission}">Submit new entry</Button>
3737
</StackPanel>
3838

39-
<ScrollViewer IsVisible="{CompiledBinding Entries.Count}">
40-
<ItemsControl ItemsSource="{CompiledBinding Entries}">
41-
<ItemsControl.ItemTemplate>
42-
<DataTemplate>
43-
<ContentControl Content="{CompiledBinding}"/>
44-
</DataTemplate>
45-
</ItemsControl.ItemTemplate>
46-
<ItemsControl.ItemsPanel>
47-
<ItemsPanelTemplate>
48-
<VirtualizingStackPanel />
49-
</ItemsPanelTemplate>
50-
</ItemsControl.ItemsPanel>
51-
</ItemsControl>
52-
</ScrollViewer>
39+
<StackPanel Spacing="15">
40+
<Button HorizontalAlignment="Right" Command="{CompiledBinding AddSubmission}">Submit new entry</Button>
41+
<ScrollViewer IsVisible="{CompiledBinding Entries.Count}">
42+
<ItemsControl ItemsSource="{CompiledBinding Entries}">
43+
<ItemsControl.ItemTemplate>
44+
<DataTemplate>
45+
<ContentControl Content="{CompiledBinding}" />
46+
</DataTemplate>
47+
</ItemsControl.ItemTemplate>
48+
<ItemsControl.ItemsPanel>
49+
<ItemsPanelTemplate>
50+
<VirtualizingStackPanel />
51+
</ItemsPanelTemplate>
52+
</ItemsControl.ItemsPanel>
53+
</ItemsControl>
54+
</ScrollViewer>
55+
</StackPanel>
56+
5357
</Panel>
5458
</Panel>
5559

0 commit comments

Comments
 (0)