Skip to content

Commit 53b1781

Browse files
Renaming method and property
1 parent 2194e3c commit 53b1781

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Flow.Launcher.Plugin/Result.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public string IcoPath
8989
/// <summary>
9090
/// Determines if the preview image should occupy the full width of the preveiw panel.
9191
/// </summary>
92-
public bool UseBigThumbnail { get; set; } = false;
92+
public bool FullWidthPreview { get; set; } = false;
9393

9494
/// <summary>
9595
/// Delegate function, see <see cref="Icon"/>
@@ -244,7 +244,7 @@ public ValueTask<bool> ExecuteAsync(ActionContext context)
244244
/// Suggests the preview image of result should use full width of the default preview panel by result's file extension.
245245
/// </summary>
246246
/// <param name="extension">File extension. Dot included.</param>
247-
public static bool ShouldUseBigThumbnail(string extension)
247+
public static bool ShouldUseFullWidthPreview(string extension)
248248
{
249249
return extension is ".jpg"
250250
or ".png"

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public ImageSource PreviewImage
169169
/// <summary>
170170
/// Determines if to use the full width of the preview panel
171171
/// </summary>
172-
public bool UseBigThumbnail => Result.UseBigThumbnail;
172+
public bool UseBigThumbnail => Result.FullWidthPreview;
173173

174174
public GlyphInfo Glyph { get; set; }
175175

Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,14 @@ internal static Result CreateOpenCurrentFolderResult(string path, bool windowsIn
205205

206206
internal static Result CreateFileResult(string filePath, Query query, int score = 0, bool windowsIndexed = false)
207207
{
208-
bool shouldUseBigThumbnail = Result.ShouldUseBigThumbnail(Path.GetExtension(filePath));
208+
bool shouldUseBigThumbnail = Result.ShouldUseFullWidthPreview(Path.GetExtension(filePath));
209209
var result = new Result
210210
{
211211
Title = Path.GetFileName(filePath),
212212
SubTitle = Path.GetDirectoryName(filePath),
213213
IcoPath = filePath,
214214
PreviewImage = shouldUseBigThumbnail ? filePath : null,
215-
UseBigThumbnail = shouldUseBigThumbnail,
215+
FullWidthPreview = shouldUseBigThumbnail,
216216
AutoCompleteText = GetPathWithActionKeyword(filePath, ResultType.File),
217217
TitleHighlightData = StringMatcher.FuzzySearch(query.Search, Path.GetFileName(filePath)).MatchData,
218218
Score = score,

Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ public Result Result(string query, IPublicAPI api)
406406
SubTitle = Main._settings.HideAppsPath ? string.Empty : Location,
407407
IcoPath = LogoPath,
408408
PreviewImage = PreviewImagePath,
409-
UseBigThumbnail = false,
409+
FullWidthPreview = false,
410410
Score = matchResult.Score,
411411
TitleHighlightData = matchResult.MatchData,
412412
ContextData = this,

0 commit comments

Comments
 (0)