CertificateSettings: Update to be more consistent with other settings

This commit is contained in:
Cameron Youell 2023-04-04 18:04:13 +10:00 committed by Andrew Kaster
parent 0060b8c4e5
commit ef5cca71dc
Notes: sideshowbarker 2024-07-17 01:23:08 +09:00
5 changed files with 8 additions and 9 deletions

View file

@ -4,15 +4,15 @@ serenity_component(
TARGETS CertificateSettings
)
compile_gml(CertificateStore.gml CertificateStoreGML.h certificate_store_gml)
compile_gml(CertificateStoreWidget.gml CertificateStoreWidgetGML.h certificate_store_widget_gml)
set(SOURCES
CertificateStore.cpp
CertificateStoreWidget.cpp
main.cpp
)
set(GENERATED_SOURCES
CertificateStoreGML.h
CertificateStoreWidgetGML.h
)
serenity_app(CertificateSettings ICON certificate)

View file

@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "CertificateStore.h"
#include "CertificateStoreWidget.h"
#include <AK/String.h>
#include <Applications/CertificateSettings/CertificateStoreGML.h>
#include <Applications/CertificateSettings/CertificateStoreWidgetGML.h>
#include <LibCrypto/ASN1/PEM.h>
#include <LibFileSystem/FileSystem.h>
#include <LibFileSystemAccessClient/Client.h>
@ -168,7 +168,7 @@ ErrorOr<NonnullRefPtr<CertificateStoreWidget>> CertificateStoreWidget::try_creat
ErrorOr<void> CertificateStoreWidget::initialize()
{
TRY(load_from_gml(certificate_store_gml));
TRY(load_from_gml(certificate_store_widget_gml));
m_root_ca_tableview = find_descendant_of_type_named<GUI::TableView>("root_ca_tableview");
m_root_ca_tableview->set_highlight_selected_rows(true);

View file

@ -4,8 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "CertificateStore.h"
#include "CertificateStoreWidget.h"
#include <LibCore/StandardPaths.h>
#include <LibCore/System.h>
#include <LibGUI/Application.h>
@ -28,7 +27,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
TRY(Core::System::unveil(nullptr, nullptr));
auto app_icon = GUI::Icon::default_icon("certificate"sv);
auto window = TRY(GUI::SettingsWindow::create("Certificates", GUI::SettingsWindow::ShowDefaultsButton::No));
auto window = TRY(GUI::SettingsWindow::create("Certificate Settings", GUI::SettingsWindow::ShowDefaultsButton::No));
auto cert_store_widget = TRY(window->add_tab<CertificateSettings::CertificateStoreWidget>(TRY("Certificate Store"_string), "certificate"sv));
window->set_icon(app_icon.bitmap_for_size(16));