[connections/fix-simultaneous-displays-2: 5/7] display-view: Disconnect show_display signal
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections/fix-simultaneous-displays-2: 5/7] display-view: Disconnect show_display signal
- Date: Wed, 28 Jul 2021 10:13:22 +0000 (UTC)
commit ee4ba3876352e784ee832a8f658967cec3d4f0ac
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Jul 28 12:07:20 2021 +0200
display-view: Disconnect show_display signal
src/display-view.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/display-view.vala b/src/display-view.vala
index f008598..ea014a4 100644
--- a/src/display-view.vala
+++ b/src/display-view.vala
@@ -80,13 +80,13 @@ namespace Connections {
public void connect_to (Connection connection) {
stack.set_visible_child_name ("loading");
- replace_display (connection);
-
if (show_display_id != 0) {
- connection.disconnect (show_display_id);
+ this.connection.disconnect (show_display_id);
show_display_id = 0;
}
+ replace_display (connection);
+
show_display_id = connection.show.connect (show_display);
connection.connect_it ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]