Skip to content
Merged

Pr1522 #1575

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions RimeWithWeasel/RimeWithWeasel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ void _LoadAppOptions(RimeConfig* config, AppOptionsByAppName& app_options);
void _RefreshTrayIcon(const RimeSessionId session_id,
const std::function<void()> _UpdateUICallback) {
// Dangerous, don't touch
static char app_name[50];
rime_api->get_property(session_id, "client_app", app_name,
sizeof(app_name) - 1);
if (u8tow(app_name) == std::wstring(L"explorer.exe"))
static char app_name[256] = {0};
auto ret = rime_api->get_property(session_id, "client_app", app_name,
sizeof(app_name) - 1);
if (!ret || u8tow(app_name) == std::wstring(L"explorer.exe"))
boost::thread th([=]() {
::Sleep(100);
if (_UpdateUICallback)
Expand Down
Loading