iykujthgrr

This commit is contained in:
Asval
2026-08-10 21:17:54 +02:00
parent 704b06b650
commit 92202297db
6 changed files with 7 additions and 4 deletions

View File

@@ -294,7 +294,7 @@ public class TabItem : ViewModel
var img = new CTexture[1];
if (texture is UTexture2DArray textureArray)
{
img = textureArray.DecodeTextureArray(null, UserSettings.Default.CurrentDir.TexturePlatform);
img = textureArray.DecodeTextureArray(UserSettings.Default.CurrentDir.TexturePlatform);
appendLayerNumber = true;
}
else

View File

@@ -386,7 +386,7 @@
<ProgressBar Grid.Row="1" Height="5" Margin="0 5 0 5" Maximum="1" Value="{Binding ProgressValue, Mode=OneWay, FallbackValue=0.5}" />
<TabControl Grid.Row="2" adonisExtensions:LayerExtension.Layer="2"
<TabControl x:Name="Tabs" Grid.Row="2" adonisExtensions:LayerExtension.Layer="2"
Background="{DynamicResource {x:Static adonisUi:Brushes.Layer0BackgroundBrush}}">
<TabItem Header="Export Logs">
<Grid>

View File

@@ -16,7 +16,10 @@ public partial class ExportSessionWindow
private async void OnExportClick(object sender, RoutedEventArgs e)
{
if (sender is Button { DataContext: ExportSessionViewModel { CanExport: true } viewModel })
{
Tabs.SelectedIndex = 0;
await viewModel.ExportAsync();
}
}
private void OnOkClick(object sender, RoutedEventArgs e)

View File

@@ -195,7 +195,7 @@ public class Options
var bitmap = o switch
{
UTexture2D texture2D => texture2D.Decode(UserSettings.Default.PreviewMaxTextureSize, UserSettings.Default.CurrentDir.TexturePlatform),
UTexture2DArray texture2DArray => texture2DArray.DecodeTextureArray(null, UserSettings.Default.CurrentDir.TexturePlatform)?.FirstOrDefault(),
UTexture2DArray texture2DArray => texture2DArray.DecodeTextureArray(UserSettings.Default.CurrentDir.TexturePlatform)?.FirstOrDefault(),
_ => o.Decode(UserSettings.Default.CurrentDir.TexturePlatform)
};