Skip to content

Commit

Permalink
qite update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Mar 20, 2024
1 parent eb36103 commit 46ef7ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/qite
8 changes: 6 additions & 2 deletions src/msgmle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "msgmle.h"

#include "htmltextcontroller.h"
#include "psiiconset.h"
#include "iconset.h"
#include "psioptions.h"
#include "qiteaudiorecorder.h"
#include "shortcutmanager.h"
Expand All @@ -39,6 +39,7 @@
#include <QMenu>
#include <QMimeData>
#include <QMimeDatabase>
#include <QRegularExpression>
#include <QResizeEvent>
#include <QStyle>
#include <QTextCharFormat>
Expand Down Expand Up @@ -685,7 +686,10 @@ void ChatEdit::addSoundRecButton()
md.setData("application/x-psi-amplitudes", recorder_->amplitudes());
emit fileSharingRequested(&md);
});
connect(recorder_.get(), &AudioRecorder::recordingStarted, this, [this]() {
connect(recorder_.get(), &AudioRecorder::stateChanged, this, [this]() {
if (recorder_->state() != AudioRecorder::RecordingState) {
return;
}
recButton_->setIcon(IconsetFactory::iconPixmap("psi/mic_rec", fontInfo().pixelSize() * 1.5));
overlay_->setVisible(true);
timeout_ = TIMEOUT;
Expand Down

0 comments on commit 46ef7ce

Please sign in to comment.