mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user