[gnome-documents] embed: ignore changes to the item count while not in overview
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] embed: ignore changes to the item count while not in overview
- Date: Mon, 1 Apr 2013 16:11:29 +0000 (UTC)
commit 14a2c54196f70366ae82f7570e4978691c73befc
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 1 12:06:51 2013 -0400
embed: ignore changes to the item count while not in overview
Or we might end up showing the view again while in preview mode, since
the notification for item count changes is asynchronous.
https://bugzilla.gnome.org/show_bug.cgi?id=697034
src/embed.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 08e3c21..565fa19 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -303,6 +303,10 @@ const Embed = new Lang.Class({
},
_onItemCountChanged: function() {
+ let windowMode = Application.modeController.getWindowMode();
+ if (windowMode != WindowMode.WindowMode.OVERVIEW)
+ return;
+
let itemCount = Application.offsetController.getItemCount();
if (itemCount == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]