mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
CertificateSettings: Update to be more consistent with other settings
This commit is contained in:
parent
0060b8c4e5
commit
ef5cca71dc
Notes:
sideshowbarker
2024-07-17 01:23:08 +09:00
Author: https://github.com/cammo1123 Commit: https://github.com/SerenityOS/serenity/commit/ef5cca71dc Pull-request: https://github.com/SerenityOS/serenity/pull/18176 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/fdellwing ✅
5 changed files with 8 additions and 9 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue