From aaa219ce27561bfe060bee5a4eaba0326bc50412 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 9 Jul 2023 21:21:29 -0400 Subject: restart ra ws on timeout --- src/remoteauth/remoteauthdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/remoteauth/remoteauthdialog.cpp') diff --git a/src/remoteauth/remoteauthdialog.cpp b/src/remoteauth/remoteauthdialog.cpp index 5ba91ae..547eb39 100644 --- a/src/remoteauth/remoteauthdialog.cpp +++ b/src/remoteauth/remoteauthdialog.cpp @@ -91,7 +91,7 @@ void RemoteAuthDialog::OnFingerprint(const std::string &fingerprint) { m_image.property_pixbuf() = pb; } -void RemoteAuthDialog::OnPendingTicket(Snowflake user_id, std::string discriminator, std::string avatar_hash, std::string username) { +void RemoteAuthDialog::OnPendingTicket(Snowflake user_id, const std::string &discriminator, const std::string &avatar_hash, const std::string &username) { Glib::ustring name = username; if (discriminator != "0") { name += "#" + discriminator; @@ -119,6 +119,6 @@ void RemoteAuthDialog::OnToken(const std::string &token) { void RemoteAuthDialog::OnError(const std::string &error) { m_ra.Stop(); - Abaddon::Get().ShowConfirm(error, dynamic_cast(get_toplevel())); + Abaddon::Get().ShowConfirm(error, dynamic_cast(get_toplevel())); response(Gtk::RESPONSE_CANCEL); } -- cgit v1.2.3