1
0
mirror of https://github.com/altlinux/admc.git synced 2025-01-08 01:18:25 +03:00

Add "Load optional attribute values" action to main window

This commit is contained in:
Semyon Knyazev 2024-02-19 03:51:16 +04:00
parent a5792f4b38
commit 092ceb17fd
3 changed files with 13 additions and 1 deletions

View File

@ -305,6 +305,7 @@ MainWindow::MainWindow(AdInterface &ad, QWidget *parent)
{SETTING_show_login, ui->action_show_login},
{SETTING_show_non_containers_in_console_tree, ui->action_show_noncontainers},
{SETTING_advanced_features, ui->action_advanced_features},
{SETTING_load_optional_attribute_values, ui->action_load_optional_values},
};
const QList<QString> simple_setting_list = {
@ -313,6 +314,7 @@ MainWindow::MainWindow(AdInterface &ad, QWidget *parent)
SETTING_log_searches,
SETTING_timestamp_log,
SETTING_show_login,
SETTING_load_optional_attribute_values
};
for (const QString &setting : bool_action_map.keys()) {

View File

@ -20,7 +20,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>27</height>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menu_file">
@ -75,6 +75,7 @@
<addaction name="action_log_searches"/>
<addaction name="action_timestamps"/>
<addaction name="action_show_noncontainers"/>
<addaction name="action_load_optional_values"/>
<addaction name="menu_language"/>
</widget>
<widget class="QMenu" name="menu_help">
@ -397,6 +398,14 @@
<string>Alt+5</string>
</property>
</action>
<action name="action_load_optional_values">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Load optional attribute values</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>

View File

@ -121,6 +121,7 @@ DEFINE_SETTING(SETTING_sasl_nocanon);
DEFINE_SETTING(SETTING_show_login);
DEFINE_SETTING(SETTING_show_password);
DEFINE_SETTING(SETTING_domain_is_default);
DEFINE_SETTING(SETTING_load_optional_attribute_values);
// Other
DEFINE_SETTING(SETTING_host);