File tree Expand file tree Collapse file tree 4 files changed +22
-8
lines changed
Flow.Launcher.Infrastructure/UserSettings Expand file tree Collapse file tree 4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -186,8 +186,6 @@ public CustomBrowserViewModel CustomBrowser
186
186
/// </summary>
187
187
public bool ShouldUsePinyin { get ; set ; } = false ;
188
188
189
- public bool UseExternalPreview { get ; set ; } = false ;
190
-
191
189
public bool AlwaysPreview { get ; set ; } = false ;
192
190
193
191
public bool AlwaysStartEn { get ; set ; } = false ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace Flow . Launcher . Plugin
4
4
{
5
- public interface IAsyncExternalPreview : IFeatures
5
+ /// <summary>
6
+ /// This interface is for plugins that wish to provide file preview (external preview)
7
+ /// via a third party app instead of the default preview.
8
+ /// </summary>
9
+ public interface IAsyncExternalPreview : IFeatures
6
10
{
7
- public Task TogglePreviewAsync ( string path ) ;
8
-
11
+ /// <summary>
12
+ /// Method for opening/showing the preview.
13
+ /// </summary>
14
+ /// <param name="path">The file path to open the preview for</param>
15
+ /// <param name="sendFailToast">Whether to send a toast message notification on failure for the user</param>
9
16
public Task OpenPreviewAsync ( string path , bool sendFailToast = true ) ;
10
17
18
+ /// <summary>
19
+ /// Method for closing/hiding the preview.
20
+ /// </summary>
11
21
public Task ClosePreviewAsync ( ) ;
12
22
23
+ /// <summary>
24
+ /// Method for switching the preview to the next file result.
25
+ /// This requires the external preview be already open/showing
26
+ /// </summary>
27
+ /// <param name="path">The file path to switch the preview for</param>
28
+ /// <param name="sendFailToast">Whether to send a toast message notification on failure for the user</param>
13
29
public Task SwitchPreviewAsync ( string path , bool sendFailToast = true ) ;
14
30
}
15
31
}
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ public ValueTask<bool> ExecuteAsync(ActionContext context)
261
261
/// Contains data used to populate the preview section of this result.
262
262
/// </summary>
263
263
public PreviewInfo Preview { get ; set ; } = PreviewInfo . Default ;
264
-
264
+
265
265
/// <summary>
266
266
/// Info of the preview section of a <see cref="Result"/>
267
267
/// </summary>
@@ -291,7 +291,7 @@ public record PreviewInfo
291
291
public IconDelegate PreviewDelegate { get ; set ; } = null ;
292
292
293
293
/// <summary>
294
- /// File path of the result. For third-party preview programs such as QuickLook .
294
+ /// File path of the result. For third-party programs providing external preview .
295
295
/// </summary>
296
296
public string FilePath { get ; set ; } = null ;
297
297
Original file line number Diff line number Diff line change @@ -768,7 +768,7 @@ public bool InternalPreviewVisible
768
768
public int ResultAreaColumn { get ; set ; } = ResultAreaColumnPreviewShown ;
769
769
770
770
// This is not a reliable indicator of whether external preview is visible due to the
771
- // ability of manually closing/exiting the external preview program, and this does not inform flow that
771
+ // ability of manually closing/exiting the external preview program which, does not inform flow that
772
772
// preview is no longer available.
773
773
public bool ExternalPreviewVisible { get ; set ; } = false ;
774
774
You can’t perform that action at this time.
0 commit comments