Implemented the concept of 'profile'
[gregoa/zavai.git] / src / app.vala
index 24a94c2839a204d4e87e44dcceed20b231865add..139151ce4bb731a001eba182a52f9b143bcfcc68 100644 (file)
@@ -148,7 +148,14 @@ public class Zavai : Gtk.Window, zavai.Resource
     {
         set_size_request(300, 500);
         //fullscreen();
-        show_all();
+        if (zavai.config.profile == "laptop")
+        {
+            visibility = false;
+            zavai.app.ensure_hidden();
+            zavai.ui.wm.raise_icon.update_icon();
+        } else {
+            show_all();
+        }
     }
 
     public void run_script(string command)