Prechádzať zdrojové kódy

UI: Fix unused variable outside of #if

jp9000 4 rokov pred
rodič
commit
57ae92206f
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      UI/window-basic-auto-config.cpp

+ 1 - 1
UI/window-basic-auto-config.cpp

@@ -553,9 +553,9 @@ static inline bool is_external_oauth(const std::string &service)
 
 void AutoConfigStreamPage::reset_service_ui_fields(std::string &service)
 {
+#if YOUTUBE_ENABLED
 	// when account is already connected:
 	OAuthStreamKey *a = reinterpret_cast<OAuthStreamKey *>(auth.get());
-#if YOUTUBE_ENABLED
 	if (a && service == a->service() && IsYouTubeService(a->service())) {
 		ui->connectedAccountLabel->setVisible(true);
 		ui->connectedAccountText->setVisible(true);