[gnome-documents/wip/cosimoc/view-rework: 18/28] embed: trivial coding style fix



commit 39b0f010c76f9b5c811df79a8451bc6bdafaf24e
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Aug 6 18:51:02 2016 -0700

    embed: trivial coding style fix

 src/embed.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index d4b7612..f653e58 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -445,12 +445,13 @@ const Embed = new Lang.Class({
         if (this._toolbar)
             this._toolbar.destroy();
 
+        let doc = Application.documentManager.getActiveItem();
+        this._edit.setUri(doc.uri);
+
         // pack the toolbar
         this._toolbar = new Edit.EditToolbar(this._preview);
         this._titlebar.add(this._toolbar);
 
-        let doc = Application.documentManager.getActiveItem();
-        this._edit.setUri(doc.uri);
         this._stack.set_visible_child_name('edit');
     },
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]