Gui: Convert Clarify Selection usage in SelectionSingleton to instance

This commit is contained in:
tetektoza
2025-09-05 00:48:02 +02:00
parent 572db4db80
commit 96dc1b7162
2 changed files with 3 additions and 6 deletions

View File

@@ -2605,8 +2605,6 @@ PyObject *SelectionSingleton::sGetSelectionFromStack(PyObject * /*self*/, PyObje
PY_CATCH;
}
bool SelectionSingleton::clarifySelectionActive = false;
bool SelectionSingleton::isClarifySelectionActive() {
return clarifySelectionActive;
}

View File

@@ -291,8 +291,6 @@ private:
class GuiExport SelectionSingleton : public Base::Subject<const SelectionChanges&>
{
public:
static bool clarifySelectionActive;
struct SelObj {
const char* DocName;
const char* FeatName;
@@ -411,8 +409,8 @@ public:
*/
void setVisible(VisibleState visible);
static bool isClarifySelectionActive();
static void setClarifySelectionActive(bool active);
bool isClarifySelectionActive();
void setClarifySelectionActive(bool active);
/// signal on new object
boost::signals2::signal<void (const SelectionChanges& msg)> signalSelectionChanged;
@@ -713,6 +711,7 @@ protected:
int logDisabled = 0;
bool logHasSelection = false;
bool clarifySelectionActive = false;
SelectionStyle selectionStyle;
};