mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
CertificateSettings: Use new GML compiler
This commit is contained in:
parent
63687c46ff
commit
8ee014a437
5 changed files with 9 additions and 13 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include "CertificateStoreWidget.h"
|
||||
#include <AK/String.h>
|
||||
#include <Applications/CertificateSettings/CertificateStoreWidgetGML.h>
|
||||
#include <LibCrypto/ASN1/PEM.h>
|
||||
#include <LibFileSystem/FileSystem.h>
|
||||
#include <LibFileSystemAccessClient/Client.h>
|
||||
|
@ -152,17 +151,15 @@ ErrorOr<void> CertificateStoreWidget::export_pem()
|
|||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<NonnullRefPtr<CertificateStoreWidget>> CertificateStoreWidget::try_create()
|
||||
ErrorOr<NonnullRefPtr<CertificateStoreWidget>> CertificateStoreWidget::create()
|
||||
{
|
||||
auto widget = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) CertificateStoreWidget()));
|
||||
auto widget = TRY(CertificateStoreWidget::try_create());
|
||||
TRY(widget->initialize());
|
||||
return widget;
|
||||
}
|
||||
|
||||
ErrorOr<void> CertificateStoreWidget::initialize()
|
||||
{
|
||||
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);
|
||||
m_root_ca_tableview->set_alternating_row_colors(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue