From fd5b9ce76bffcf89344d7397197810d7c09a64ba Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Thu, 27 Feb 2025 09:53:34 +0600 Subject: [PATCH] Password has been hidden --- source/CMakeLists.txt | 2 -- source/ubl-settings-bootloader.cc | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 7ec21c7..97e6b70 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -66,8 +66,6 @@ add_custom_target( DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C} ) -#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always -std=c++2a") -#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always -lm") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always \ -O2 -pipe -fno-plt -fexceptions \ -Wformat -Werror=format-security \ diff --git a/source/ubl-settings-bootloader.cc b/source/ubl-settings-bootloader.cc index 05c85be..8c08211 100644 --- a/source/ubl-settings-bootloader.cc +++ b/source/ubl-settings-bootloader.cc @@ -9,7 +9,7 @@ bool flag_save_local = false; bool flag_save_global = false; bool flag_load_global = false; bool flag_lock_help = false; -string version_application = "2.10"; +string version_application; MainWindow* obj_main; void wrapper_help_show(GtkWidget *self, char* link, gpointer user_data) { @@ -197,6 +197,7 @@ void View_edit_add_table::show_melody_add() { } void View_edit_add_table::show_user_edit() { gtk_entry_set_input_purpose(GTK_ENTRY(entryCol2->gobj()),GTK_INPUT_PURPOSE_PASSWORD); + entryCol2->set_visibility(0); lblAddEditCheckBox->set_text(string(str_administrator) + ":"); lblAddEditCol1->set_text(string(str_user) + ":"); lblAddEditCol2->set_text(string(str_password) + ":"); @@ -212,6 +213,7 @@ void View_edit_add_table::show_user_add() { chkAddEdit->set_active(false); entryCol1->set_text(""); entryCol2->set_text(""); + entryCol2->set_visibility(0); lblAddEditCheckBox->set_text(string(str_administrator) + ":"); lblAddEditCol1->set_text(string(str_user) + ":"); lblAddEditCol2->set_text(string(str_password) + ":");