-
-
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
fixed: Unable to mark files not in video db yet as watched #17414
base: master
Are you sure you want to change the base?
Conversation
Have you tested that this has no bad side effects, like music items showing "mark as watched" now? |
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.
3d5c174
to
08b6108
Compare
tbh i cannot reproduce neither in 18 nor 19 |
08b6108
to
c3582ac
Compare
c3582ac
to
b4a308f
Compare
ignore please. Sorry |
@arnova could you provide repro instructions? How exactly do access a video item so it's not in the VideoDB yet? Or is it simply a video item in a source prior to a library scan? |
@phunkyfish : Browse to a folder in the files section which hasn't been opened before with "extract flags/thumbsnails" enabled is that will automatically add the file item to the video db. And RMB on one of the files there. @ksooo : It just came to mind that enabling this logic for "Mark as unwatched" makes no sense since any item that is considered watched must already be in the db. Another question: you mentioned that it shouldn't be in IsVisible() but atm I don't see any other location where this should go then. Mind elaborating? Wouldn't it be better to drop is in IsVisible() for now and fixing it up after the refactor? |
b4a308f
to
65cb682
Compare
@arnova woohoo, now I see, thanks! |
return false; | ||
|
||
const int currentWindow = CServiceBroker::GetGUI()->GetWindowManager().GetActiveWindow(); | ||
if (currentWindow == WINDOW_VIDEO_NAV)) |
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.
return currentWindow == WINDOW_VIDEO_NAV;
I will not stop saying: Making the visible decision based on the active window is a hack hack hack! |
@arnova this needs a rebase |
Then @ksooo how should we prevent items on the context menu that are not wanted on certain windows? Seems to me that sometimes the window is also part of the context |
Yes, the window can be part of the context, but not for watched/unwatched as watched state is completely unrelated to any window. |
BTW: doesn't fix #18023 fix this issue? Not sure about this. |
I don't see how that would fix this issue. |
content-less == no db entry? |
Content-less doesn't mean item can't be in db. Furthermore I believe this change only "allows" marking/unmarking again for content-less sources with items that are also in db rather than enabling it for items NOT in the db. |
@arnova understand this both got bogged down and you have been unable to get back to it. Bumping to v20 since I doubt you will be able to complete for v19. However if you are able to look at this for v19 (as a fix it will be welcome at any point in the cycle) please do and change labels back. |
So any ideas how to proceed with this? @ksooo / @DaveTBlake / ... ? |
Strange that I/we didn't notice this before....