ported to v6

This commit is contained in:
2022-01-15 04:32:04 +03:00
parent 7d0cf6e22f
commit 57d5b83daf
3 changed files with 4 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ namespace ProjectFilesystemPlugin {
{
Utils::globalMacroExpander()->registerPrefix("ProjectFilesystem", "Project filesystem plugin", [](QString v) -> QString {return v;} );
Utils::globalMacroExpander()->registerFileVariables("ProjectFilesystem", "Selected item",
[]() -> QString { return projectfs_menu_target.absoluteFilePath();});
[]() -> Utils::FilePath { return Utils::FilePath::fromString(projectfs_menu_target.absoluteFilePath());}, true);
// Retrieve objects from the plugin manager's object pool
// In the extensionsInitialized function, a plugin can be sure that all
// plugins that depend on it are completely initialized.