[gnome-documents] embed: trivial code cleanup
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] embed: trivial code cleanup
- Date: Mon, 24 Oct 2016 03:49:16 +0000 (UTC)
commit 17bd41e08f4e1dea717a1b5e02487c355952bb7c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Oct 10 18:20:13 2016 -0700
embed: trivial code cleanup
src/embed.js | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index d6fa2a0..9425607 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -66,9 +66,7 @@ const Embed = new Lang.Class({
Application.searchController.connect('search-string-changed',
Lang.bind(this, this._onSearchChanged));
- let windowMode = Application.modeController.getWindowMode();
- if (windowMode != WindowMode.WindowMode.NONE)
- this._onWindowModeChanged(Application.modeController, windowMode, WindowMode.WindowMode.NONE);
+ this._view.windowMode = Application.modeController.getWindowMode();
},
_onSearchChanged: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]