瀏覽代碼

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

We'll enable it once ColumnsView is less crashy. :^)
Andreas Kling 5 年之前
父節點
當前提交
ab9a0780e3
共有 1 個文件被更改,包括 1 次插入2 次删除
  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());
     toolbar->add_action(m_view->view_as_table_action());
 
 
     // FIXME: Enable this once GUI::ColumnsView doesn't crash when used here.
     // 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());
     toolbar->add_action(m_view->view_as_columns_action());
-#endif
 
 
     auto lower_container = vertical_container->add<Widget>();
     auto lower_container = vertical_container->add<Widget>();
     lower_container->set_layout(make<VerticalBoxLayout>());
     lower_container->set_layout(make<VerticalBoxLayout>());