Skip to content

Commit

Permalink
Options, ui/Options: add explicit defaults to all fields
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Sep 11, 2024
1 parent 8873b5f commit f624a03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/Options.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ struct Options {
std::vector<enum mpd_tag_type> library_page_tags{MPD_TAG_ARTIST, MPD_TAG_ALBUM};
#endif

std::chrono::steady_clock::duration hide_cursor;
std::chrono::steady_clock::duration hide_cursor{0};
std::chrono::steady_clock::duration status_message_time = std::chrono::seconds(3);

int port;
int port = 0;
int timeout_ms = 0;
int crossfade_time = DEFAULT_CROSSFADE_TIME;
int search_mode;
int search_mode = 0;
int seek_time = 1;

#ifdef ENABLE_CHAT_SCREEN
Expand All @@ -57,17 +57,17 @@ struct Options {
bool lyrics_show_plugin = false;
#endif

bool auto_center;
bool auto_center = false;

#ifndef NCMPC_MINI
bool enable_xterm_title;
bool enable_xterm_title = false;
#endif
#ifdef HAVE_GETMOUSE
bool enable_mouse;
bool enable_mouse = false;
#endif
#ifndef NCMPC_MINI
bool scroll = DEFAULT_SCROLL;
bool visible_bitrate;
bool visible_bitrate = false;
bool welcome_screen_list = true;
bool second_column = true;
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/ui/Options.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct UiOptions {
bool find_show_last_pattern = false;
bool list_wrap = false;
bool wide_cursor = true;
bool hardware_cursor;
bool hardware_cursor = false;

#ifdef ENABLE_COLORS
bool enable_colors = true;
Expand All @@ -21,7 +21,7 @@ struct UiOptions {
#endif

bool audible_bell = true;
bool visible_bell;
bool visible_bell = false;
bool bell_on_wrap = true;
#ifdef NCMPC_MINI
static constexpr bool jump_prefix_only = true;
Expand Down

0 comments on commit f624a03

Please sign in to comment.