Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Decimation committed Apr 24, 2024
1 parent 84f992d commit 1e844a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions SmartImage.UI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
xmlns:diag="clr-namespace:System.Diagnostics;assembly=WindowsBase"
xmlns:model1="clr-namespace:SmartImage.Lib.Model;assembly=SmartImage.Lib"
DataContext="{Binding RelativeSource={RelativeSource Self}}"
mc:Ignorable="d" Height="675" Width="1325" MinWidth="1325" MinHeight="325" Loaded="Wnd_Main_Loaded"
mc:Ignorable="d" Height="675" Width="1400" MinWidth="1400" MinHeight="325" Loaded="Wnd_Main_Loaded"
Closed="Wnd_Main_Closed"
Closing="Wnd_Main_Closing" Title="SmartImage" Unloaded="Wnd_Main_Unloaded" Background="#FF191919"
KeyDown="Wnd_Main_KeyDown">
Expand Down Expand Up @@ -561,7 +561,7 @@
<TextBox x:Name="Tb_Info_Type" HorizontalAlignment="Left" Margin="64,65,0,0" TextWrapping="Wrap"
VerticalAlignment="Top" Width="130" IsReadOnly="True" Height="20" Background="Black"
Foreground="White" TextAlignment="Center"
Text="{Binding CurrentQuery.Query.Uni.FileType, Mode=OneWay,
Text="{Binding CurrentQuery.Query.ImageInfo.DefaultMimeType, Mode=OneWay,
UpdateSourceTrigger=PropertyChanged, FallbackValue={x:Null}, ElementName=Wnd_Main, IsAsync=True}" />

<TextBox x:Name="Tb_Info_Size" HorizontalAlignment="Left" Margin="217,65,0,0" TextWrapping="Wrap"
Expand Down
4 changes: 1 addition & 3 deletions SmartImage.UI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1514,16 +1514,14 @@ private void SetPreview(IGuiImageSource igs)
var p = FindParent(rri);

if (p != null) {
Debug.WriteLine($"{p}");
Debug.WriteLine($"couldn't find parent for {rri}/{p}");
name = p.Name;
name2 = $"(child)";

}

}
else {
name2 = "(parent)";
Debug.WriteLine($"couldn't find parent for {rri}");
}
}

Expand Down
2 changes: 1 addition & 1 deletion SmartImage.UI/Model/ResultItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ protected virtual void OnImageDownloadCompleted(object? sender, EventArgs args)
protected virtual void OnImageDownloadProgress(object? sender, DownloadProgressEventArgs args)
{
PreviewProgress = ((float) args.Progress * 100.0f);
Label = $"Preview cache...";
Label = $"Preview cache...{PreviewProgress}";
}

protected virtual void OnImageDownloadFailed(object? sender, ExceptionEventArgs args)
Expand Down

0 comments on commit 1e844a0

Please sign in to comment.