From 636a4fe36ca3fbe8825d9b485ecbfab0ed2077ff Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 18 Aug 2021 12:53:59 +0200 Subject: [PATCH] SystemMonitor: Rename "File system" tab to "Storage" --- Userland/Applications/SystemMonitor/main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Userland/Applications/SystemMonitor/main.cpp b/Userland/Applications/SystemMonitor/main.cpp index 3dbcdedb3e..620288d253 100644 --- a/Userland/Applications/SystemMonitor/main.cpp +++ b/Userland/Applications/SystemMonitor/main.cpp @@ -47,7 +47,7 @@ #include static NonnullRefPtr build_process_window(pid_t); -static NonnullRefPtr build_file_systems_tab(); +static NonnullRefPtr build_storage_widget(); static NonnullRefPtr build_hardware_tab(); static NonnullRefPtr build_graphs_tab(); @@ -191,8 +191,8 @@ int main(int argc, char** argv) auto graphs_widget = build_graphs_tab(); tabwidget.add_widget("Graphs", graphs_widget); - auto file_systems_widget = build_file_systems_tab(); - tabwidget.add_widget("File systems", file_systems_widget); + auto storage_widget = build_storage_widget(); + tabwidget.add_widget("Storage", storage_widget); auto hardware_widget = build_hardware_tab(); tabwidget.add_widget("Hardware", hardware_widget); @@ -375,7 +375,7 @@ int main(int argc, char** argv) else if (args_tab_view == "graphs") tabwidget.set_active_widget(graphs_widget); else if (args_tab_view == "fs") - tabwidget.set_active_widget(file_systems_widget); + tabwidget.set_active_widget(storage_widget); else if (args_tab_view == "hardware") tabwidget.set_active_widget(hardware_widget); else if (args_tab_view == "network") @@ -468,11 +468,11 @@ NonnullRefPtr build_process_window(pid_t pid) return window; } -NonnullRefPtr build_file_systems_tab() +NonnullRefPtr build_storage_widget() { - auto fs_widget = GUI::LazyWidget::construct(); + auto widget = GUI::LazyWidget::construct(); - fs_widget->on_first_show = [](GUI::LazyWidget& self) { + widget->on_first_show = [](GUI::LazyWidget& self) { self.set_layout(); self.layout()->set_margins(4); auto& fs_table_view = self.add(); @@ -561,7 +561,7 @@ NonnullRefPtr build_file_systems_tab() fs_table_view.model()->invalidate(); }; - return fs_widget; + return widget; } NonnullRefPtr build_hardware_tab()