[gnome-builder] cargo: fix configmanager access



commit 603ad9fedc6d242ee7f1f1ee414eaa4c407b08a8
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 10 12:40:16 2019 -0800

    cargo: fix configmanager access

 src/plugins/cargo/cargo_plugin.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/cargo/cargo_plugin.py b/src/plugins/cargo/cargo_plugin.py
index b3f4b6db2..13c377556 100644
--- a/src/plugins/cargo/cargo_plugin.py
+++ b/src/plugins/cargo/cargo_plugin.py
@@ -166,7 +166,7 @@ class CargoBuildTarget(Ide.Object, Ide.BuildTarget):
 
     def do_get_argv(self):
         context = self.get_context()
-        config_manager = context.get_configuration_manager()
+        config_manager = Ide.ConfigManager.from_context(context)
         config = config_manager.get_current()
         cargo = locate_cargo_from_config(config)
 
@@ -227,7 +227,7 @@ class CargoDependencyUpdater(Ide.Object, Ide.DependencyUpdater):
                                          code=Gio.IOErrorEnum.FAILED))
             return
 
-        config_manager = context.get_configuration_manager()
+        config_manager = Ide.ConfigManager.from_context(context)
         config = config_manager.get_current()
         cargo = locate_cargo_from_config(config)
 


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