Skip to content

Commit

Permalink
avoid init yt keys
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviotordini committed Aug 6, 2020
1 parent 35294e7 commit 574053c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ MainWindow::MainWindow()

if (VideoAPI::impl() == VideoAPI::IV) {
Invidious::instance().initServers();
} else if (VideoAPI::impl() == VideoAPI::YT3) {
YT3::instance().initApiKeys();
}

QTimer::singleShot(100, this, &MainWindow::lazyInit);
Expand Down
1 change: 0 additions & 1 deletion src/yt3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const QString &YT3::baseUrl() {
}

YT3::YT3() {
initApiKeys();
}

void YT3::initApiKeys() {
Expand Down

0 comments on commit 574053c

Please sign in to comment.