mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Small refactoring
Allow translation of the name of none icon
This commit is contained in:
parent
cf8f661b17
commit
5eda865eb4
@ -414,8 +414,7 @@ IconSettings* Desktop::read_desktop_file(const char* path) {
|
||||
else
|
||||
is->icon = buf;
|
||||
|
||||
edelib::DesktopFileType dtype = dconf.type();
|
||||
if(dtype == edelib::DESK_FILE_TYPE_LINK) {
|
||||
if(dconf.type() == edelib::DESK_FILE_TYPE_LINK) {
|
||||
is->cmd_is_url = true;
|
||||
dconf.url(buf, bufsz);
|
||||
}
|
||||
@ -428,7 +427,7 @@ IconSettings* Desktop::read_desktop_file(const char* path) {
|
||||
|
||||
if(!dconf.name(buf, bufsz)) {
|
||||
E_DEBUG(E_STRLOC ": No Name key\n");
|
||||
is->name = "(none)";
|
||||
is->name = _("(none)");
|
||||
} else
|
||||
is->name = buf;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user