Added a deactivate() function to Tab so when switching tabs it hides … (#5386)

Added a deactivate() function to Tab so when switching tabs it hides the active contents. Also removed clearing of the pages so it's not destroyed each time.

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
A Koolen-Bourke 2024-05-20 02:20:08 +12:00 committed by GitHub
parent 01213e58b0
commit 7a335590e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View file

@ -104,6 +104,7 @@ public:
void reload_config();
void update_visibility(ConfigOptionMode mode, bool update_contolls_visibility);
void activate(ConfigOptionMode mode, std::function<void()> throw_if_canceled);
void deactivate();
void clear();
void msw_rescale();
void sys_color_changed();