diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-08 11:56:43 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-08 23:20:06 +0200 |
commit | 5de5f9d9a9b945c80f9a7f387570c18232548870 (patch) | |
tree | 9866906c1ce4104bba393c1f9b36a82c932440d3 /include | |
parent | 477bc6687a05f2820dcd1b8f2663b4a5537fb3ea (diff) |
Temporary workaround tabbed bug
When closing the tabbed window, all embedded windows except the first
one are killed
Diffstat (limited to 'include')
-rw-r--r-- | include/QuickMedia.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index c792d2d..2877e0c 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -94,12 +94,11 @@ namespace QuickMedia { const char* get_plugin_name() const; void manga_get_watch_history(const char *plugin_name, BodyItems &history_items); void youtube_get_watch_history(BodyItems &history_items); - - void window_set_urgent(); private: void init(Window parent_window); void load_plugin_by_name(std::vector<Tab> &tabs, const char *start_dir); - void handle_window_close(); + // Returns true if the window was closed + bool handle_window_close(); void base_event_handler(sf::Event &event, PageType previous_page, Body *body, SearchBar *search_bar, bool handle_key_press = true, bool handle_searchbar = true); void event_idle_handler(const sf::Event &event); void idle_active_handler(); |