[PTRun] Drag and drop files (#22409)

* [PTRun] Support drag&drop to other application for files in result list

* [PTRun] use file/folder thumbnail as drag image

* (fix spellcheck)

* [PTRun] use _mouseDownResultViewModel.Image to generate the drag image

* fix spelling + refactoring
This commit is contained in:
Daniel Richter
2022-12-09 14:01:44 +01:00
committed by GitHub
parent bb92b03156
commit 08d569ccf6
12 changed files with 184 additions and 16 deletions

View File

@@ -20,7 +20,7 @@ namespace Wox.Test.Plugins
var mock = new Mock<IPublicAPI>();
var pluginInitContext = new PluginInitContext() { API = mock.Object };
var contextMenuLoader = new ContextMenuLoader(pluginInitContext);
var searchResult = new SearchResult() { Type = ResultType.Folder, FullPath = "C:/DummyFolder" };
var searchResult = new SearchResult() { Type = ResultType.Folder, Path = "C:/DummyFolder" };
var result = new Result() { ContextData = searchResult };
// Act
@@ -39,7 +39,7 @@ namespace Wox.Test.Plugins
var mock = new Mock<IPublicAPI>();
var pluginInitContext = new PluginInitContext() { API = mock.Object };
var contextMenuLoader = new ContextMenuLoader(pluginInitContext);
var searchResult = new SearchResult() { Type = ResultType.File, FullPath = "C:/DummyFile.cs" };
var searchResult = new SearchResult() { Type = ResultType.File, Path = "C:/DummyFile.cs" };
var result = new Result() { ContextData = searchResult };
// Act