Browse Source

Fixed quick usage

Krzysztof Krysiński 3 years ago
parent
commit
66f94fe594
1 changed files with 1 additions and 0 deletions
  1. 1 0
      PixiEditor/ViewModels/SubViewModels/Main/ToolsViewModel.cs

+ 1 - 0
PixiEditor/ViewModels/SubViewModels/Main/ToolsViewModel.cs

@@ -93,6 +93,7 @@ namespace PixiEditor.ViewModels.SubViewModels.Main
 
 
         public void SetActiveTool(Tool tool)
         public void SetActiveTool(Tool tool)
         {
         {
+            if (ActiveTool == tool) return;
             MoveToolIsTransient = false;
             MoveToolIsTransient = false;
             bool shareToolbar = IPreferences.Current.GetPreference<bool>("EnableSharedToolbar");
             bool shareToolbar = IPreferences.Current.GetPreference<bool>("EnableSharedToolbar");
             if (ActiveTool != null)
             if (ActiveTool != null)