[gnome-builder] beautifier: no need to warn on non-existent file
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] beautifier: no need to warn on non-existent file
- Date: Thu, 11 Jan 2018 03:31:30 +0000 (UTC)
commit 24e1d867536f297c99244049cfb0415eae1fa583
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 10 19:29:55 2018 -0800
beautifier: no need to warn on non-existent file
This is a bit chatty, as it will almost always warn on startup
for applications not using it.
src/plugins/beautifier/gb-beautifier-config.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/beautifier/gb-beautifier-config.c b/src/plugins/beautifier/gb-beautifier-config.c
index cb6a03a..e40804b 100644
--- a/src/plugins/beautifier/gb-beautifier-config.c
+++ b/src/plugins/beautifier/gb-beautifier-config.c
@@ -537,11 +537,7 @@ gb_beautifier_config_get_map (GbBeautifierEditorAddin *self,
key_file = g_key_file_new ();
if (!g_file_query_exists (file, NULL))
- {
- /* translators: %s is replaced with a path name */
- ide_object_warning (self, _("Beautifier plugin: the path “%s” doesn’t exist"), file_name);
- return map;
- }
+ return map;
if (!g_file_load_contents (file, NULL, &data, &data_len, NULL, NULL))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]