Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
debs
gnome-contacts
Commits
c33933b7
Commit
c33933b7
authored
Oct 21, 2020
by
Andres Reyes Monge
Committed by
Niels De Graef
Nov 03, 2020
Browse files
app: Fixes show_individual when store is not ready
parent
d591157d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/contacts-app.vala
View file @
c33933b7
...
...
@@ -88,6 +88,16 @@ public class Contacts.App : Gtk.Application {
}
public
async
void
show_individual
(
string
id
)
{
if
(
contacts_store
.
is_quiescent
)
{
show_individual_ready
.
begin
(
id
);
}
else
{
contacts_store
.
quiescent
.
connect
(
()
=>
{
show_individual_ready
.
begin
(
id
);
});
}
}
private
async
void
show_individual_ready
(
string
id
)
{
Individual
?
contact
=
null
;
try
{
contact
=
yield
contacts_store
.
aggregator
.
look_up_individual
(
id
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment