| 138 | } |
| 139 | |
| 140 | static QStringList getCellLabels(TwitchToken *token, bool addName = true) |
| 141 | { |
| 142 | assert(token); |
| 143 | |
| 144 | auto result = QStringList(); |
| 145 | if (addName) { |
| 146 | result << QString::fromStdString(token->Name()); |
| 147 | } |
| 148 | result << QString::fromStdString(obs_module_text( |
| 149 | token->IsValid() |
| 150 | ? "AdvSceneSwitcher.twitchConnectionTab.yes" |
| 151 | : "AdvSceneSwitcher.twitchConnectionTab.no")) |
| 152 | << QString::number(token->PermissionCount()); |
| 153 | return result; |
| 154 | } |
| 155 | |
| 156 | static void updateConnectionStatus(QTableWidget *table) |
| 157 | { |
no test coverage detected