[gnome-games/gnome-3-36] application: Ensure loading notification is shown after unpausing
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/gnome-3-36] application: Ensure loading notification is shown after unpausing
- Date: Wed, 12 Feb 2020 11:47:04 +0000 (UTC)
commit 64c745f69b7ead46b7dc8d7cfb73a792c07267da
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Feb 12 16:40:46 2020 +0500
application: Ensure loading notification is shown after unpausing
src/ui/application.vala | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 20acd729..d2ab6ca2 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -225,7 +225,7 @@ public class Games.Application : Gtk.Application {
}
private bool show_loading_notification () {
- if (!game_list_loaded)
+ if (!game_list_loaded && !game_collection.paused)
window.loading_notification = true;
return false;
@@ -340,8 +340,13 @@ public class Games.Application : Gtk.Application {
}
internal async void load_game_list () {
+ GLib.Timeout.add (500, show_loading_notification);
+
yield game_collection.search_games ();
+ if (game_collection.paused)
+ return;
+
game_list_loaded = true;
if (window != null)
window.loading_notification = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]