[gnome-boxes] assistant: Don't rely on implicit .begin since its deprecated
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] assistant: Don't rely on implicit .begin since its deprecated
- Date: Tue, 1 Mar 2022 12:54:00 +0000 (UTC)
commit 8fbe4649fe9fe15d1d740d2e1aa6340a2c520895
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Mar 1 13:41:46 2022 +0100
assistant: Don't rely on implicit .begin since its deprecated
src/assistant/index-page.vala | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/assistant/index-page.vala b/src/assistant/index-page.vala
index 881ad0be..a5b68d6d 100644
--- a/src/assistant/index-page.vala
+++ b/src/assistant/index-page.vala
@@ -75,15 +75,15 @@ private async void populate_media_lists () {
yield media_manager.connect_to_tracker ();
installer_medias = yield media_manager.list_installer_medias ();
- populate_detected_sources_list (MAX_MEDIA_ENTRIES);
+ yield populate_detected_sources_list (MAX_MEDIA_ENTRIES);
}
- private void populate_detected_sources_list (int? number_of_items = null) {
+ private async void populate_detected_sources_list (int? number_of_items = null) {
var number_of_available_medias = installer_medias.length ();
source_model.remove_all ();
if (number_of_available_medias == 0) {
- populate_recommended_downloads_list ();
+ yield populate_recommended_downloads_list ();
return;
}
@@ -129,8 +129,8 @@ private void update_topbar () {
}
}
- private void on_expand_detected_sources_list () {
- populate_detected_sources_list ();
+ private async void on_expand_detected_sources_list () {
+ yield populate_detected_sources_list ();
view_more_medias_button.get_parent ().destroy ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]