From 887b6003010a0c455667fb67c12a5577c60498db Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 4 Aug 2019 19:15:17 +0200 Subject: Remove unused mvp options --- src/QuickMedia.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/QuickMedia.cpp') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index c0ae44f..70f520a 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -184,7 +184,6 @@ namespace QuickMedia { //current_plugin = new Manganelo(); current_plugin = new Youtube(); search_bar = std::make_unique(font); - page_view_stack.push(current_page); } Program::~Program() { @@ -244,10 +243,8 @@ namespace QuickMedia { }; search_bar->onTextSubmitCallback = [this](const std::string &text) { - if(search_selected_suggestion(body, current_plugin) == SearchResult::OK) { + if(search_selected_suggestion(body, current_plugin) == SearchResult::OK) current_page = Page::SEARCH_RESULT; - page_view_stack.push(current_page); - } }; sf::Vector2f body_pos; @@ -317,7 +314,6 @@ namespace QuickMedia { return; video_url = selected_item->url; current_page = Page::VIDEO_CONTENT; - page_view_stack.push(current_page); }; sf::Vector2f body_pos; -- cgit v1.2.3