Skip to content

shorten the path#46

Open
qizhihangqitingting wants to merge 1 commit intonepnep39:masterfrom
qizhihangqitingting:shorten-the-path
Open

shorten the path#46
qizhihangqitingting wants to merge 1 commit intonepnep39:masterfrom
qizhihangqitingting:shorten-the-path

Conversation

@qizhihangqitingting
Copy link
Copy Markdown

I change C:\Program Files\WindowsApps into %WindowsApps%, and made such changes

I also find it can only be compile using #include "Register.hpp" instead of #include <Register.hpp>

@qizhihangqitingting
Copy link
Copy Markdown
Author

@nepnep39

std::wstring consolestring = console;

return console;
if (consolestring.find(L"Program Files\\WindowsApp") != std::wstring::npos) {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the string is too long, the icon will be broken

consolestring.erase(0, 8);
consolestring = L"%Users%" + consolestring;
}
return consolestring;
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shorten the consolestring, so we us that instead of console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant