Skip to content

Commit e11e7b3

Browse files
committed
*
1 parent 2038550 commit e11e7b3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

SmartImage.Lib 3/SearchQuery.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ public static bool IsValidSourceType(object str)
118118

119119
public void Dispose()
120120
{
121-
122121
Uni?.Dispose();
122+
Debug.WriteLine($"Disposing {ValueString} w/ {Size}");
123123
}
124124

125125
[CanBeNull]
@@ -150,7 +150,9 @@ public override bool Equals(object obj)
150150

151151
public override int GetHashCode()
152152
{
153-
return HashCode.Combine(Uni, Upload, Size);
153+
// return HashCode.Combine(Uni, Upload, Size);
154+
return HashCode.Combine(Uni);
155+
// return Uni.GetHashCode();
154156
}
155157

156158
public static bool operator ==(SearchQuery left, SearchQuery right)

SmartImage.UI/MainWindow.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public MainWindow()
151151

152152
// m_hydrus = new HydrusClient()
153153
ParseArgs(Args);
154-
154+
155155
}
156156

157157
#region
@@ -671,8 +671,8 @@ private void Cancel()
671671
private void Restart(bool full = false)
672672
{
673673
Cancel();
674-
ClearResults(full);
675674
Dispose(full);
675+
ClearResults(full);
676676

677677
CurrentQueueItem = String.Empty;
678678
ReloadToken();
@@ -691,6 +691,7 @@ private void ClearQueryControls()
691691

692692
Tb_Upload.Text = String.Empty;
693693
Pb_Status.IsIndeterminate = false;
694+
Tb_Preview.Text = string.Empty;
694695
}
695696

696697
private void ClearResults(bool full = false)

0 commit comments

Comments
 (0)