Skip to content

Commit 0de6c4d

Browse files
authored
Merge pull request #195 from taooceros/RenderImprovement
Render improvement
2 parents 5db250f + 89443ba commit 0de6c4d

File tree

7 files changed

+359
-198
lines changed

7 files changed

+359
-198
lines changed

Flow.Launcher.Infrastructure/Image/ImageCache.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ public ImageSource this[string path]
7373

7474
public bool ContainsKey(string key)
7575
{
76-
var contains = Data.ContainsKey(key) && Data[key] != null;
77-
return contains;
76+
return Data.ContainsKey(key) && Data[key].imageSource != null;
7877
}
7978

8079
public int CacheSize()

Flow.Launcher.Infrastructure/Logger/Log.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,18 @@ private static bool FormatValid(string message)
5050
return valid;
5151
}
5252

53-
53+
5454

5555
[MethodImpl(MethodImplOptions.Synchronized)]
5656
public static void Exception(string className, string message, System.Exception exception, [CallerMemberName] string methodName = "")
5757
{
58+
#if DEBUG
59+
throw exception;
60+
#else
5861
var classNameWithMethod = CheckClassAndMessageAndReturnFullClassWithMethod(className, message, methodName);
5962

6063
ExceptionInternal(classNameWithMethod, message, exception);
64+
#endif
6165
}
6266

6367
private static string CheckClassAndMessageAndReturnFullClassWithMethod(string className, string message,

Flow.Launcher/ResultListBox.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
d:DataContext="{d:DesignInstance vm:ResultsViewModel}"
1010
MaxHeight="{Binding MaxHeight}"
1111
SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
12-
SelectedItem="{Binding SelectedItem, Mode=OneWayToSource}"
12+
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
1313
HorizontalContentAlignment="Stretch" ItemsSource="{Binding Results}"
1414
Margin="{Binding Margin}"
1515
Visibility="{Binding Visbility}"

0 commit comments

Comments
 (0)