Skip to content

Commit

Permalink
disable slide after message send to curb overuse
Browse files Browse the repository at this point in the history
  • Loading branch information
in1tiate committed May 18, 2024
1 parent db3daca commit a61a9d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/courtroom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2180,6 +2180,9 @@ void Courtroom::reset_ui()
if (!Options::getInstance().clearPreOnPlayEnabled())
// Turn off our Preanim checkbox
ui_pre->setChecked(false);

// Slides can't be sticky for nausea reasons.
ui_slide_enable->setChecked(false);
}

void Courtroom::chatmessage_enqueue(QStringList p_contents)
Expand Down Expand Up @@ -2774,8 +2777,8 @@ void Courtroom::do_transition(QString p_desk_mod, QString old_pos, QString new_p
!Options::getInstance().slidesEnabled() ||
m_chatmessage[SLIDE] != "1" ||
duration == -1 ||
m_chatmessage[EMOTE_MOD] == ZOOM ||
m_chatmessage[EMOTE_MOD] == PREANIM_ZOOM) {
m_chatmessage[EMOTE_MOD].toInt() == ZOOM ||
m_chatmessage[EMOTE_MOD].toInt() == PREANIM_ZOOM) {
#ifdef DEBUG_TRANSITION
qDebug() << "skipping transition - not applicable";
#endif
Expand Down

0 comments on commit a61a9d3

Please sign in to comment.