[nautilus/wip/coreyberla/app-chooser-fixes: 3/8] app-chooser: Only emit "mime-data-changed" if it changed
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/coreyberla/app-chooser-fixes: 3/8] app-chooser: Only emit "mime-data-changed" if it changed
- Date: Mon, 8 Aug 2022 18:15:25 +0000 (UTC)
commit 54fd2ff1570ddaeaedd1dc079748dc0fde06c4fa
Author: Corey Berla <corey berla me>
Date: Sun Aug 7 21:10:03 2022 -0700
app-chooser: Only emit "mime-data-changed" if it changed
src/nautilus-app-chooser.c | 2 +-
src/nautilus-files-view.c | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/nautilus-app-chooser.c b/src/nautilus-app-chooser.c
index 929d60a8d..2598ff23d 100644
--- a/src/nautilus-app-chooser.c
+++ b/src/nautilus-app-chooser.c
@@ -61,6 +61,7 @@ open_button_clicked_cb (GtkButton *button,
info = gtk_app_chooser_get_app_info (GTK_APP_CHOOSER (self->app_chooser_widget));
g_app_info_set_as_default_for_type (info, self->content_type,
&error);
+ g_signal_emit_by_name (nautilus_signaller_get_current (), "mime-data-changed");
}
if (error != NULL)
@@ -78,7 +79,6 @@ open_button_clicked_cb (GtkButton *button,
}
gtk_app_chooser_refresh (GTK_APP_CHOOSER (self->app_chooser_widget));
- g_signal_emit_by_name (nautilus_signaller_get_current (), "mime-data-changed");
}
static void
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 937f9af7f..32f08cce6 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -1471,8 +1471,6 @@ app_chooser_dialog_response_cb (GtkDialog *dialog,
info = nautilus_app_chooser_get_app_info (NAUTILUS_APP_CHOOSER (dialog));
- g_signal_emit_by_name (nautilus_signaller_get_current (), "mime-data-changed");
-
nautilus_launch_application (info, files, parent_window);
g_object_unref (info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]