Source

Kephra / lib / Kephra / App / Part / Editor.pm

Diff from to

File lib/Kephra/App/Part/Editor.pm

 
 	$active_bar = $db;
 	@passive_bar = ($db2);
-say $active_bar;
 
 	$self;
 }
 	}
 	$passive_bar[-1]->Destroy();
 	delete $passive_bar[-1];
+	Kephra::API::focus($active_bar->GetSelection);
+	#Kephra::API::focus( Kephra::API::document()->panel->{$active_bar} );
+	#Kephra::API::focus( $splitter{'main'} );
 }
 sub select_docbar_add {
 	my $docbar_count = scalar @passive_bar + 1;
 	push @passive_bar, $active_bar;
 	$active_bar = shift @passive_bar;
 	$active_bar->raise_page( $active_bar->GetSelection );
+	Kephra::API::main_window()->refresh_title();
 }
 sub select_docbar_prev {
 	unshift @passive_bar, $active_bar;
 	$active_bar = pop @passive_bar;
 	$active_bar->raise_page( $active_bar->GetSelection );
+	Kephra::API::main_window()->refresh_title();
 }
 sub select_docbar {
 	my $bar = shift;