aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorscatterflower <2956568+scatterflower@users.noreply.github.com>2021-01-03 19:23:01 -0600
committerGitHub <noreply@github.com>2021-01-03 19:23:01 -0600
commit29f8733dbaecdd51dc5855e259c5def1d03b90c2 (patch)
treeb4c02cf04a5d709f361a15caa90fa8e0dd8699e8 /src/courtroom.cpp
parent9cd533cf40eb569062a5c09f5585379ada5ae3c5 (diff)
FL toggle for Y offset (#360)
Use "y_offset" to enable the Y offset protocol extension.
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index e39c3d9a..95189112 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1708,7 +1708,10 @@ void Courtroom::on_chat_return_pressed()
packet_contents.append("-1");
}
// Send the offset as it's gonna be used regardless
- packet_contents.append(QString::number(char_offset) + "&" + QString::number(char_vert_offset));
+ if(ao_app->y_offset_enabled)
+ packet_contents.append(QString::number(char_offset) + "&" + QString::number(char_vert_offset));
+ else
+ packet_contents.append(QString::number(char_offset));
// Finally, we send over if we want our pres to not interrupt.
if (ui_pre_non_interrupt->isChecked() && ui_pre->isChecked()) {
@@ -4450,7 +4453,8 @@ void Courtroom::on_pair_clicked()
if (ui_pair_list->isHidden()) {
ui_pair_list->show();
ui_pair_offset_spinbox->show();
- ui_pair_vert_offset_spinbox->show();
+ if(ao_app->y_offset_enabled)
+ ui_pair_vert_offset_spinbox->show();
ui_pair_order_dropdown->show();
ui_mute_list->hide();
ui_mute->set_image("mute");