MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / openSettingsDialog

Function openSettingsDialog

plugins/twitch/twitch-tab.cpp:175–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175static void openSettingsDialog()
176{
177 auto selectedRows =
178 tabWidget->Table()->selectionModel()->selectedRows();
179 if (selectedRows.empty()) {
180 return;
181 }
182
183 auto cell = tabWidget->Table()->item(selectedRows.last().row(), 0);
184 if (!cell) {
185 return;
186 }
187
188 auto weakToken = GetWeakTwitchTokenByQString(cell->text());
189 auto token = weakToken.lock();
190 if (!token) {
191 return;
192 }
193
194 TwitchTokenSettingsDialog::AskForSettings(GetSettingsWindow(),
195 *token.get());
196 updateConnectionStatus(tabWidget->Table());
197}
198
199static const QStringList headers =
200 QStringList()

Callers

nothing calls this directly

Calls 5

updateConnectionStatusFunction · 0.70
GetSettingsWindowFunction · 0.50
emptyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected