Skip to content

Commit 08356ad

Browse files
committed
Native context menu: remove ItemType property from Result
1 parent 53188c3 commit 08356ad

File tree

5 files changed

+0
-22
lines changed

5 files changed

+0
-22
lines changed

Flow.Launcher.Plugin/Result.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,6 @@ public ValueTask<bool> ExecuteAsync(ActionContext context)
246246
return AsyncAction?.Invoke(context) ?? ValueTask.FromResult(Action?.Invoke(context) ?? false);
247247
}
248248

249-
/// <summary>
250-
/// Item Height Style. Null, Small (for displaying the native context menu in the Explorer plugin), Author
251-
/// </summary>
252-
public ResultItemType ItemType { get; set; }
253-
254249
/// <summary>
255250
/// Progress bar display. Providing an int value between 0-100 will trigger the progress bar to be displayed on the result
256251
/// </summary>

Flow.Launcher.Plugin/ResultItemType.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

Flow.Launcher/ResultListBox.xaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,6 @@
222222
<!-- http://stackoverflow.com/questions/16819577/setting-background-color-or-wpf-4-0-listbox-windows-8/#16820062 -->
223223
<ListBox.ItemContainerStyle>
224224
<Style TargetType="{x:Type ListBoxItem}">
225-
<Style.Triggers>
226-
<DataTrigger Binding="{Binding Result.ItemType}" Value="Small">
227-
<Setter Property="Height" Value="{Binding ItemTypeSmallSize}" />
228-
</DataTrigger>
229-
</Style.Triggers>
230225
<Setter Property="Height" Value="{Binding Settings.ItemHeightSize}" />
231226
<Setter Property="Visibility" Value="Visible" />
232227
<EventSetter Event="MouseEnter" Handler="OnMouseEnter" />
@@ -262,6 +257,5 @@
262257
</Setter.Value>
263258
</Setter>
264259
</Style>
265-
266260
</ListBox.ItemContainerStyle>
267261
</ListBox>

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ public ImageSource PreviewImage
180180
/// </summary>
181181
public bool UseBigThumbnail => Result.Preview.IsMedia;
182182

183-
public double ItemTypeSmallSize => Settings.ItemHeightSize * 0.6;
184-
185183
public GlyphInfo Glyph { get; set; }
186184

187185
private async Task<ImageSource> LoadImageInternalAsync(string imagePath, Result.IconDelegate icon, bool loadFullImage)

Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ public List<Result> LoadContextMenus(Result selectedResult)
284284
{
285285
Title = menuItem.Label,
286286
Icon = () => menuItem.Icon,
287-
ItemType = ResultItemType.Small,
288287
Action = _ =>
289288
{
290289
ShellContextMenuDisplayHelper.ExecuteContextMenuItem(record.FullPath, menuItem.CommandId);

0 commit comments

Comments
 (0)