[gnome-builder] terminal: fix run-terminal output



commit c8eef9bda071aaa333c06ed2bb1c31e63db8ad06
Author: Günther Wagner <info gunibert de>
Date:   Fri Jul 2 10:33:53 2021 +0200

    terminal: fix run-terminal output
    
    The run terminal is spawned on every editor workspace and only the last
    workspace gets the runner pty therefore only an secondary window will
    get stdout/stderr from running applications. This fix restricts the
    run-terminal to be only spawned on the primary workspace.

 src/plugins/terminal/gbp-terminal-workspace-addin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/terminal/gbp-terminal-workspace-addin.c 
b/src/plugins/terminal/gbp-terminal-workspace-addin.c
index 85dbb2038..06c6b6acd 100644
--- a/src/plugins/terminal/gbp-terminal-workspace-addin.c
+++ b/src/plugins/terminal/gbp-terminal-workspace-addin.c
@@ -459,7 +459,7 @@ gbp_terminal_workspace_addin_load (IdeWorkspaceAddin *addin,
 
       workbench = ide_widget_get_workbench (GTK_WIDGET (workspace));
 
-      if (ide_workbench_has_project (workbench))
+      if (ide_workbench_has_project (workbench) && IDE_IS_PRIMARY_WORKSPACE (workspace))
         {
           /* Setup terminals when a project is run */
           context = ide_widget_get_context (GTK_WIDGET (workspace));


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