[gnome-shell] extension-tool: Always print extension location after its creation



commit f8cd01c6dcdc70cc4539671aef7f6eac76fbdc7f
Author: Leleat <atule pm me>
Date:   Fri May 21 23:55:28 2021 +0200

    extension-tool: Always print extension location after its creation
    
    The extension location was only printed, if there was no handler for
    the newly created extension. This is confusing for new extension
    developers. So always print the extension location.
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2515.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1856>

 subprojects/extensions-tool/src/command-create.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/subprojects/extensions-tool/src/command-create.c 
b/subprojects/extensions-tool/src/command-create.c
index 64b38824aa..420fb27a28 100644
--- a/subprojects/extensions-tool/src/command-create.c
+++ b/subprojects/extensions-tool/src/command-create.c
@@ -217,13 +217,13 @@ launch_extension_source (GFile *dir, GError **error)
 
   main_source = g_file_get_child (dir, "extension.js");
   handler = g_file_query_default_handler (main_source, NULL, NULL);
+
+  /* Translators: a file path to an extension directory */
+  g_print (_("The new extension was successfully created in %s.\n"),
+            g_file_peek_path (dir));
+
   if (handler == NULL)
-    {
-      /* Translators: a file path to an extension directory */
-      g_print (_("The new extension was successfully created in %s.\n"),
-               g_file_peek_path (dir));
       return TRUE;
-    }
 
   l.data = main_source;
   l.next = l.prev = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]