clang-format
This commit is contained in:
parent
ea40eb0994
commit
de17fe31fb
|
@ -105,10 +105,10 @@ void ConfigureHotkeys::ApplyConfiguration(HotkeyRegistry& registry) {
|
||||||
for (int key_column_id = 0; key_column_id < parent->rowCount(); key_column_id++) {
|
for (int key_column_id = 0; key_column_id < parent->rowCount(); key_column_id++) {
|
||||||
QStandardItem* action = parent->child(key_column_id, 0);
|
QStandardItem* action = parent->child(key_column_id, 0);
|
||||||
QStandardItem* keyseq = parent->child(key_column_id, 1);
|
QStandardItem* keyseq = parent->child(key_column_id, 1);
|
||||||
for (auto & [group, sub_actions] : registry.hotkey_groups) {
|
for (auto& [group, sub_actions] : registry.hotkey_groups) {
|
||||||
if (group != parent->text())
|
if (group != parent->text())
|
||||||
continue;
|
continue;
|
||||||
for (auto & [action_name, hotkey] : sub_actions) {
|
for (auto& [action_name, hotkey] : sub_actions) {
|
||||||
if (action_name != action->text())
|
if (action_name != action->text())
|
||||||
continue;
|
continue;
|
||||||
hotkey.keyseq = QKeySequence(keyseq->text());
|
hotkey.keyseq = QKeySequence(keyseq->text());
|
||||||
|
|
|
@ -127,10 +127,11 @@ void ConfigureWeb::OnLoginChanged() {
|
||||||
void ConfigureWeb::VerifyLogin() {
|
void ConfigureWeb::VerifyLogin() {
|
||||||
ui->button_verify_login->setDisabled(true);
|
ui->button_verify_login->setDisabled(true);
|
||||||
ui->button_verify_login->setText(tr("Verifying..."));
|
ui->button_verify_login->setText(tr("Verifying..."));
|
||||||
verify_watcher.setFuture(QtConcurrent::run([
|
verify_watcher.setFuture(QtConcurrent::run(
|
||||||
username = UsernameFromDisplayToken(ui->edit_token->text().toStdString()),
|
[username = UsernameFromDisplayToken(ui->edit_token->text().toStdString()),
|
||||||
token = TokenFromDisplayToken(ui->edit_token->text().toStdString())
|
token = TokenFromDisplayToken(ui->edit_token->text().toStdString())] {
|
||||||
] { return Core::VerifyLogin(username, token); }));
|
return Core::VerifyLogin(username, token);
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureWeb::OnLoginVerified() {
|
void ConfigureWeb::OnLoginVerified() {
|
||||||
|
|
Reference in New Issue