[gnome-games] application: Ensure loading notification is shown after unpausing
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] application: Ensure loading notification is shown after unpausing
- Date: Wed, 12 Feb 2020 11:42:21 +0000 (UTC)
commit 0d0a2745ec71eb84abb74d7bacda8b529962301d
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 61adf735..bdb9e1e9 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -285,7 +285,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;
@@ -398,8 +398,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]