Remove duplicated disable history code

This commit is contained in:
lbonn 2024-11-10 20:49:40 +01:00
parent 2baa809d8a
commit 0a0cc5f6d7
2 changed files with 0 additions and 8 deletions

View file

@ -247,10 +247,6 @@ typedef struct _thread_state_view {
} thread_state_view;
static void wayland___create_window(MenuFlags menu_flags) {
// In password mode, disable the entry history.
if ((menu_flags & MENU_PASSWORD) == MENU_PASSWORD) {
CacheState.entry_history_enable = FALSE;
}
input_history_initialize();
TICK_N("create cairo surface");

View file

@ -677,10 +677,6 @@ static void open_xim_callback(xcb_xim_t *im, G_GNUC_UNUSED void *user_data) {
#endif
static void xcb___create_window(MenuFlags menu_flags) {
// In password mode, disable the entry history.
if ((menu_flags & MENU_PASSWORD) == MENU_PASSWORD) {
CacheState.entry_history_enable = FALSE;
}
input_history_initialize();
uint32_t selmask = XCB_CW_BACK_PIXMAP | XCB_CW_BORDER_PIXEL |