-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sui(impl): Add chat list order configuration #421
Sui(impl): Add chat list order configuration #421
Conversation
Sorry for replying so late, just fired by my employer recently :-P |
df2ad25
to
bf2aa75
Compare
@SilverRainZ I updated it. |
src/core/app_config.c
Outdated
@@ -16,5 +16,9 @@ void srn_application_config_free(SrnApplicationConfig *cfg){ | |||
} | |||
|
|||
SrnRet srn_application_config_check(SrnApplicationConfig *cfg){ | |||
if (g_strcmp0(cfg->ui->window.chat_list_order, CHAT_LIST_ORDER_RECENT) != 0 | |||
&& g_strcmp0(cfg->ui->window.chat_list_order, CHAT_LIST_ORDER_ALPHABET) != 0){ | |||
return SRN_ERR; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can return RET_ERR(xxx") to provide a more friendly error message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SilverRainZ Should I update the PO files after adding an error message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is fine, we can do this when we want to refresh our translation.
bf2aa75
to
6b596d1
Compare
6b596d1
to
46cf5c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Adds a way to sort channels alphabetically in the sidebar
Notes for the review:
sidebar-sort
configuration value, but no other settings appear to have such checks. The default value I have provided inbuiltin.cfg
is de facto arbitrary.list_sort_func