Fixed terminal output when running GUI
This commit is contained in:
parent
3f6c97bda7
commit
10aec4e41b
@ -582,7 +582,9 @@ void refreshDB( bool linux, void *progress_ptr ) {
|
||||
|
||||
for ( auto &show : shows ) {
|
||||
if ( FSLib::exists( show[TEXT( "PATH" )] ) ) {
|
||||
#ifndef GUI
|
||||
cleanUpLine();
|
||||
#endif
|
||||
p.print( TEXT( "Refreshing " ) + show[TEXT( "SHOW" )] );
|
||||
p.print( 0 );
|
||||
std::map< int, std::map< int, string > > seasons;
|
||||
@ -669,7 +671,9 @@ void updateDB( bool linux, void *progress_ptr ) {
|
||||
if ( !FSLib::exists( show[TEXT( "PATH" )] ) ) {
|
||||
continue;
|
||||
}
|
||||
#ifndef GUI
|
||||
cleanUpLine();
|
||||
#endif
|
||||
p.print( TEXT( "Updating " ) + show[TEXT( "SHOW" )] );
|
||||
|
||||
std::unordered_set< string > episodes;
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <gtkmm/messagedialog.h>
|
||||
#include <gtkmm/scrolledwindow.h>
|
||||
#include <gtkmm/textview.h>
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
|
||||
#include "databasewindow.hpp"
|
||||
|
@ -12,7 +12,6 @@
|
||||
#include <gtkmm/menubar.h>
|
||||
#include <gtkmm/menuitem.h>
|
||||
#include <gtkmm/window.h>
|
||||
#include <iostream>
|
||||
#include <set>
|
||||
|
||||
#include "network.hpp"
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include <gtkmm/liststore.h>
|
||||
#include <iostream>
|
||||
#include <mutex>
|
||||
|
||||
#include "functions.hpp"
|
||||
@ -10,7 +9,6 @@ ProgressWindow::ProgressWindow() {
|
||||
|
||||
set_default_size( 500, 55 );
|
||||
|
||||
std::cout << "Layout" << std::endl;
|
||||
add( *layout );
|
||||
set_size_request( 500, 55 );
|
||||
set_resizable( false );
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <gtkmm/layout.h>
|
||||
#include <gtkmm/progressbar.h>
|
||||
#include <gtkmm/window.h>
|
||||
#include <iostream>
|
||||
|
||||
class ProgressWindow : public Gtk::Window {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user