moonshot-identity-manager-app: Do not create 2 GtkWindows
[moonshot-ui.git] / src / moonshot-identity-manager-app.vala
index 13b17a7..f9fcfb2 100644 (file)
@@ -1,7 +1,7 @@
 using Gtk;
 
 
-class IdentityManagerApp : Window {
+class IdentityManagerApp {
     public IdentityManagerModel model;
     private IdentityManagerView view;
     private MoonshotServer ipc_server;
@@ -19,6 +19,7 @@ class IdentityManagerApp : Window {
         init_ipc_server ();
 #if OS_MACOS
                osxApp = OSXApplication.get_instance();
+               osxApp.ns_application_open_file.connect(ipc_server.install_from_file);
 #endif
         view.show();
     }