Przeglądaj źródła

HackStudio: Scope the "delete file from project" action to tree view

Otherwise it triggers when trying to delete characters in the editor.
Andreas Kling 3 lat temu
rodzic
commit
d3bd9f1f0c

+ 2 - 1
Userland/DevTools/HackStudio/HackStudioWidget.cpp

@@ -561,7 +561,8 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_delete_action()
                 }
                 }
             }
             }
         }
         }
-    });
+    },
+        m_project_tree_view);
     delete_action->set_enabled(false);
     delete_action->set_enabled(false);
     return delete_action;
     return delete_action;
 }
 }