[gnome-documents/gnome-3-8] 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/gnome-3-8] embed: ignore changes to the item count while not in overview
- Date: Tue, 16 Apr 2013 01:24:20 +0000 (UTC)
commit 00bea99d718b78631f065b286597acaa92205617
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 file changed, 4 insertions(+)
---
diff --git a/src/embed.js b/src/embed.js
index 251f6bf..1d1744a 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]