Ver código fonte

LibGUI: Show the columns view action in the toolbar (but disable it)

We'll enable it once ColumnsView is less crashy. :^)
Andreas Kling 5 anos atrás
pai
commit
ab9a0780e3
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      Libraries/LibGUI/FilePicker.cpp

+ 1 - 2
Libraries/LibGUI/FilePicker.cpp

@@ -157,9 +157,8 @@ FilePicker::FilePicker(Mode mode, const StringView& file_name, const StringView&
     toolbar->add_action(m_view->view_as_table_action());
 
     // FIXME: Enable this once GUI::ColumnsView doesn't crash when used here.
-#if 0
+    m_view->view_as_columns_action().set_enabled(false);
     toolbar->add_action(m_view->view_as_columns_action());
-#endif
 
     auto lower_container = vertical_container->add<Widget>();
     lower_container->set_layout(make<VerticalBoxLayout>());