-
Notifications
You must be signed in to change notification settings - Fork 31
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
Added a field to recorder service that can be overwritten to display another title #596
base: master
Are you sure you want to change the base?
Conversation
I'm not sure that modifying the variable in the
You can test this PR with the below plugin
|
from testing i seems this only affects manually recorded mediapackages, the title in the events panel in the recorder UI is changed only and seems to work well. |
…a title other than the mediapackage title.
f9cd248
to
2d4b13e
Compare
event_type.set_text("") | ||
if status.get_text(): | ||
status.set_text("") | ||
title.set_text(_(self.recorder.title_standin)) |
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.
hey sorry! this is almost there.
i think you forgot to call self.recorder.set_title_standin(self, title)
here
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.
I think not, it looks like the set_title_standin() function is meant to be called through a plugin (and if not the behaviour should be the same as before this PR)
@TurRil can you confirm?
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.
Hi @TurRil, sorry for the huge delay here.
I'm hesitant to merge this, as I think we should not add this logic using the recorder service.
What do you think of adding the title_standin to classui.mainwindow?
@@ -69,6 +69,7 @@ def __init__(self, dispatcher, repo, worker, conf, logger, autorecover=False, re | |||
self.__create_drawing_areas_func = None | |||
self.__handle_recover_id = None | |||
self.autorecover = autorecover | |||
self.title_standin = None |
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.
This should not be added to the recorder service.
See if you can add it to the classui/mainwindow instead (to keep ui logic on the ui)
event_type.set_text("") | ||
if status.get_text(): | ||
status.set_text("") | ||
title.set_text(_(self.recorder.title_standin)) |
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.
I think not, it looks like the set_title_standin() function is meant to be called through a plugin (and if not the behaviour should be the same as before this PR)
@TurRil can you confirm?
As a plugin I want to be able to display another title in the recorder UI so that when a user sees the galicaster screen their name could be displayed correctly.