From 98fbc838ddb1661c8ef7264a8024492f42e87ca5 Mon Sep 17 00:00:00 2001 From: henrypp Date: Thu, 30 Apr 2020 20:06:29 +0600 Subject: [PATCH] upd info codes --- src/main.hpp | 4 ++-- src/profile.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main.hpp b/src/main.hpp index be7fd516..d6f64305 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -82,8 +82,8 @@ enum EnumXmlType enum EnumInfo { - InfoPath = 0, - InfoName = 1, + InfoName = 0, + InfoPath = 1, InfoTimestamp = 2, InfoTimer = 3, InfoIconId = 4, diff --git a/src/profile.cpp b/src/profile.cpp index 302cd886..3254addc 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -15,7 +15,12 @@ LONG_PTR _app_getappinfo (size_t app_hash, EnumInfo info_key) if (ptr_app) { - if (info_key == InfoName) + if (info_key == InfoPath) + { + if (!_r_str_isempty (ptr_app->real_path)) + result = (LONG_PTR)ptr_app->real_path; + } + else if (info_key == InfoName) { if (!_r_str_isempty (ptr_app->display_name)) result = (LONG_PTR)ptr_app->display_name;