Commit 993bc600 authored by Mohammed Sadiq's avatar Mohammed Sadiq

application: Simplify app running check

parent df9fb713
Pipeline #42237 passed with stages
in 5 minutes and 16 seconds
......@@ -154,7 +154,6 @@ chatty_application_startup (GApplication *application)
self->daemon = FALSE;
chatty->uri = NULL;
chatty->app_running = FALSE;
G_APPLICATION_CLASS (chatty_application_parent_class)->startup (application);
......@@ -215,7 +214,7 @@ chatty_application_open (GApplication *application,
if (g_file_has_uri_scheme (files[i], "sms")) {
uri = g_file_get_uri (files[i]);
if (chatty->app_running) {
if (gtk_application_get_active_window (GTK_APPLICATION (application))) {
chatty_blist_add_buddy_from_uri (uri);
} else {
chatty->uri = g_strdup (uri);
......
......@@ -342,8 +342,6 @@ chatty_window_init_data (void)
if (chatty->uri) {
chatty_blist_add_buddy_from_uri (chatty->uri);
}
chatty->app_running = TRUE;
}
......
......@@ -66,7 +66,6 @@ typedef struct {
GtkWidget *label_overlay_2;
GtkWidget *label_overlay_3;
gboolean app_running;
ChattyCmlOptions cml_options;
const char *uri;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment