From 34cf42719984ef0f009270e492bf1fc916a8a128 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Thu, 16 Sep 2021 10:40:00 +0200
Subject: [PATCH] dyn_waitbar_close.m: fix closing of waitbars under Octave

(cherry picked from commit 79ee6a5565c77e6522c004cc6b2b69aeba559a10)
---
 matlab/dyn_waitbar_close.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/dyn_waitbar_close.m b/matlab/dyn_waitbar_close.m
index fbc8ab03db..2dde2419c3 100644
--- a/matlab/dyn_waitbar_close.m
+++ b/matlab/dyn_waitbar_close.m
@@ -4,7 +4,7 @@ function dyn_waitbar_close(h)
 % octave and when console_mode=1
 
 %
-% Copyright (C) 2011-2017 Dynare Team
+% Copyright (C) 2011-2021 Dynare Team
 %
 % This file is part of Dynare.
 %
@@ -22,7 +22,7 @@ function dyn_waitbar_close(h)
 % along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global options_
 
-if isoctave || options_.console_mode
+if options_.console_mode
     clear dyn_waitbar;
     diary on
     fprintf('\n');
-- 
GitLab