mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
BugFix: prevent View Terminate if not previously Initiated
Ensures Action::Manager stores terminated actions only if previously initiated (caused iterative action storing on keyboard repeat).
This commit is contained in:
6
View.h
6
View.h
@@ -75,7 +75,7 @@ public:
|
||||
|
||||
// grab a source provided a start and an end point in screen coordinates and the picking point
|
||||
virtual void initiate ();
|
||||
virtual void terminate ();
|
||||
virtual void terminate (bool force = false);
|
||||
virtual Cursor grab (Source*, glm::vec2, glm::vec2, std::pair<Node *, glm::vec2>) {
|
||||
return Cursor ();
|
||||
}
|
||||
@@ -105,9 +105,11 @@ protected:
|
||||
virtual void restoreSettings ();
|
||||
virtual void saveSettings ();
|
||||
|
||||
std::string current_action_;
|
||||
Mode mode_;
|
||||
|
||||
bool current_action_ongoing_;
|
||||
std::string current_action_;
|
||||
|
||||
// selection
|
||||
Group *overlay_selection_;
|
||||
Frame *overlay_selection_frame_;
|
||||
|
||||
Reference in New Issue
Block a user