mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
moved app name to constructor to init only once
This commit is contained in:
@@ -167,7 +167,6 @@ public:
|
||||
// Return the display name of the powertoy, this will be cached
|
||||
virtual PCWSTR get_name() override
|
||||
{
|
||||
app_name = GET_RESOURCE_STRING(IDS_POWERRENAME);
|
||||
return app_name.c_str();
|
||||
}
|
||||
|
||||
@@ -301,6 +300,7 @@ public:
|
||||
PowerRenameModule()
|
||||
{
|
||||
init_settings();
|
||||
app_name = GET_RESOURCE_STRING(IDS_POWERRENAME);
|
||||
}
|
||||
|
||||
~PowerRenameModule(){};
|
||||
|
||||
Reference in New Issue
Block a user