-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FavouritesDirectory] fix for adding addons to favourites via addonbrowser #11421
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good apart from the minors.
@@ -197,8 +197,15 @@ std::string CFavouritesDirectory::GetExecutePath(const CFileItem &item, const st | |||
execute = StringUtils::Format("ActivateWindow(%s,%s,return)", contextWindow.c_str(), StringUtils::Paramify(item.GetPath()).c_str()); | |||
} | |||
//! @todo STRING_CLEANUP | |||
else if (item.IsScript() && item.GetPath().size() > 9) // plugin://<foo> | |||
else if (StringUtils::StartsWith(item.GetPath(), "script://")) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
execute = StringUtils::Format("RunScript(%s)", StringUtils::Paramify(item.GetPath().substr(9)).c_str()); | ||
else if (StringUtils::StartsWith(item.GetPath(), "plugin://")) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
execute = StringUtils::Format("RunScript(%s)", StringUtils::Paramify(item.GetPath().substr(9)).c_str()); | ||
else if (StringUtils::StartsWith(item.GetPath(), "plugin://")) | ||
execute = StringUtils::Format("PunPlugin(%s)", StringUtils::Paramify(item.GetPath().substr(9)).c_str()); | ||
else if (item.IsAddonsPath()) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@Montellese updated. |
jenkins build this please. |
execute = StringUtils::Format("RunScript(%s)", StringUtils::Paramify(item.GetPath().substr(9)).c_str()); | ||
else if (item.IsPlugin() && item.GetPath().size() > 9) // plugin://<foo> | ||
execute = StringUtils::Format("PunPlugin(%s)", StringUtils::Paramify(item.GetPath().substr(9)).c_str()); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
updated. |
f938749
to
0e28538
Compare
jenkins build this please. |
worth a backport? |
else if (item.IsAddonsPath() && item.GetPath().size() > 9) // addons://<foo> | ||
{ | ||
CURL url(item.GetPath()); | ||
execute = StringUtils::Format("RunAddon(%s)", url.GetFileName()); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
jenkins build this please. |
Fixes some scenarios where adding addons as favourites doesnt work properly.
@tamland