UI: remove directory button label in extensions & add doc-string
This commit is contained in:
parent
92987cbe4a
commit
3edd6ae69b
@ -2127,7 +2127,7 @@ class USERPREF_PT_extensions_repos(Panel):
|
||||
# Apart from being consistent with the custom directory UI,
|
||||
# prefer a read-only property over a label because this is not necessarily
|
||||
# valid UTF-8 which will raise a Python exception when passed in as text.
|
||||
row.prop(active_repo, "directory")
|
||||
row.prop(active_repo, "directory", text="")
|
||||
|
||||
layout_panel.separator()
|
||||
|
||||
|
@ -112,6 +112,9 @@ bUserExtensionRepo *BKE_preferences_extension_repo_find_by_remote_path_prefix(
|
||||
* Skip the `https` or `http` part of a URL `https://`, return zero if none is found.
|
||||
*/
|
||||
int BKE_preferences_extension_repo_remote_scheme_end(const char *url);
|
||||
/**
|
||||
* Set a name based on a URL, e.g. `https://www.example.com/path` -> `www.example.com`.
|
||||
*/
|
||||
void BKE_preferences_extension_remote_to_name(const char *remote_path, char name[64]);
|
||||
|
||||
int BKE_preferences_extension_repo_get_index(const UserDef *userdef,
|
||||
|
@ -385,7 +385,7 @@ void BKE_preferences_extension_remote_to_name(const char *remote_path,
|
||||
while (*c && url_char_is_delimiter(*c)) {
|
||||
c++;
|
||||
}
|
||||
/* Skip the domain name typically. */
|
||||
/* Skip the domain name. */
|
||||
while (*c && !url_char_is_delimiter(*c)) {
|
||||
c++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user