-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Add playlist FileItem classify #25200
base: master
Are you sure you want to change the base?
Conversation
498fc83
to
452f666
Compare
@@ -517,7 +517,10 @@ bool CGUIWindowMusicBase::OnContextButton(int itemNumber, CONTEXT_BUTTON button) | |||
|
|||
case CONTEXT_BUTTON_EDIT_SMART_PLAYLIST: | |||
{ | |||
std::string playlist = item->IsSmartPlayList() ? item->GetPath() : m_vecItems->GetPath(); // save path as activatewindow will destroy our items | |||
std::string playlist = |
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.
might as well throw in a const.
@@ -940,7 +940,10 @@ bool CGUIWindowVideoBase::OnContextButton(int itemNumber, CONTEXT_BUTTON button) | |||
return true; | |||
case CONTEXT_BUTTON_EDIT_SMART_PLAYLIST: | |||
{ | |||
std::string playlist = m_vecItems->Get(itemNumber)->IsSmartPlayList() ? m_vecItems->Get(itemNumber)->GetPath() : m_vecItems->GetPath(); // save path as activatewindow will destroy our items | |||
std::string playlist = |
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.
const?
if (item.HasProperty("library.smartplaylist") && | ||
item.GetProperty("library.smartplaylist").asBoolean()) |
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.
item.GetProperty("library.smartplaylist").asBoolean(false)
?
I probably didn't noticed in previous PR, the copyright years of the new files seem strange? I don't know the rules though, is that on purpose? |
@notspiff this needs a rebase |
Description
Move playlist fileitem classifiers to separate file
Motivation and context
Reduce CFileItem interface
How has this been tested?
Builds + I have added tests
What is the effect on users?
None
Types of change
Checklist: