From 335547e081261e9b8c3622b698de5b6273af2bb8 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 8 Jan 2023 17:45:37 +0100 Subject: Tabs can be marked as dirty --- src/ochess.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ochess.hpp') diff --git a/src/ochess.hpp b/src/ochess.hpp index 4b1b867..434ca72 100644 --- a/src/ochess.hpp +++ b/src/ochess.hpp @@ -53,7 +53,9 @@ public: long linked_id; /// @brief Set to true if this tab is attach to another one (c.f linked_id) bool is_linked; - TabInfos(Type type_) : type(type_), id(tab_count), is_linked(false) { tab_count++; } + /// @brief True if current tab is dirty + bool is_dirty; + TabInfos(Type type_) : type(type_), id(tab_count), is_linked(false), is_dirty(false) { tab_count++; } void Link(TabInfos *tab); virtual void Refresh(){}; /// @brief Call when tab is linked to another one -- cgit v1.2.3