mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Change YouTube Broadcast Dialog title
Also uses cached username rather than making an API request.
This commit is contained in:
parent
35602e3249
commit
2535414923
@ -1193,6 +1193,7 @@ YouTube.Auth.WaitingAuth.Title="YouTube User Authorization"
|
||||
YouTube.Auth.WaitingAuth.Text="Please complete the authorization in your external browser.<br>If the external browser does not open, follow this link and complete the authorization:<br>%1"
|
||||
YouTube.AuthError.Text="Failed to get channel information: %1."
|
||||
|
||||
YouTube.Actions.WindowTitle="YouTube Broadcast Setup - Channel: %1"
|
||||
YouTube.Actions.CreateNewEvent="Create New Broadcast"
|
||||
YouTube.Actions.ChooseEvent="Select Existing Broadcast"
|
||||
YouTube.Actions.Title="Title*"
|
||||
|
@ -23,7 +23,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>YouTube Actions</string>
|
||||
<string>YouTube.Actions.WindowTitle</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
@ -96,19 +96,10 @@ OBSYoutubeActions::OBSYoutubeActions(QWidget *parent, Auth *auth,
|
||||
Cancel();
|
||||
return;
|
||||
}
|
||||
ChannelDescription channel;
|
||||
if (!apiYouTube->GetChannelDescription(channel)) {
|
||||
blog(LOG_DEBUG, "Could not get channel description.");
|
||||
ShowErrorDialog(
|
||||
parent,
|
||||
apiYouTube->GetLastError().isEmpty()
|
||||
? QTStr("YouTube.Actions.Error.General")
|
||||
: QTStr("YouTube.Actions.Error.Text")
|
||||
.arg(apiYouTube->GetLastError()));
|
||||
Cancel();
|
||||
return;
|
||||
}
|
||||
this->setWindowTitle(channel.title);
|
||||
|
||||
const char *name = config_get_string(OBSBasic::Get()->Config(),
|
||||
"YouTube", "ChannelName");
|
||||
this->setWindowTitle(QTStr("YouTube.Actions.WindowTitle").arg(name));
|
||||
|
||||
QVector<CategoryDescription> category_list;
|
||||
if (!apiYouTube->GetVideoCategoriesList(category_list)) {
|
||||
|
Loading…
Reference in New Issue
Block a user