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



commit 3f4c696e8cd5924c5a965bb00b502ea14def16d1
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]