From 0ded89cf48a288a249a8f60cce8341aa17551b33 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Nov 2023 19:46:41 +0300 Subject: forgotten icon registration --- src/mir_app/src/database.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mir_app') diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp index 2ce6ee4d60..7b662e5ba4 100644 --- a/src/mir_app/src/database.cpp +++ b/src/mir_app/src/database.cpp @@ -486,6 +486,11 @@ static wchar_t tszUnknownFormat[] = LPGENW("Miranda was unable to open '%s', it' static wchar_t tszProfileLocked[] = LPGENW("Miranda was unable to open '%s'\nIt's inaccessible or used by other application or Miranda instance"); static wchar_t tszNoSuitableDriver[] = LPGENW("Miranda was unable to open '%s'\nThere is no suitable database driver installed"); +static IconItem iconList[] = +{ + { LPGEN("Show password"), "showpass", IDI_EYE }, +}; + int LoadDatabaseModule(void) { wchar_t tmp[MAX_PATH]; @@ -552,5 +557,6 @@ int LoadDatabaseModule(void) if (rc == 0) HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); + g_plugin.registerIcon(LPGEN("Database"), iconList, "database"); return rc; } -- cgit v1.2.3