mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
change default value of UIConfig's clock display limit, and prevent old config files from overriding the limit
720 hours was too long to be expressed via superclock in 62 bits. Use 99:59:59 instead.
This commit is contained in:
parent
def35cf043
commit
3a2e6e174b
2 changed files with 11 additions and 1 deletions
|
|
@ -494,6 +494,16 @@ ARDOUR_UI::parameter_changed (std::string p)
|
|||
inhibit_screensaver (false);
|
||||
break;
|
||||
}
|
||||
} else if (p == "clock-display-limit") {
|
||||
/* limit upper value to 99:59:59 (HH:MM:SS) */
|
||||
using namespace Temporal;
|
||||
const samplecnt_t limit = (99*60*60) + (59*60) + (59); /* seconds */
|
||||
|
||||
std::cerr <<"\n\n\n CDL changed to " << UIConfiguration::instance().get_clock_display_limit() << " vs. " << limit << " \n\n";
|
||||
|
||||
if (UIConfiguration::instance().get_clock_display_limit() > limit) {
|
||||
UIConfiguration::instance().set_clock_display_limit (limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ UI_CONFIG_VARIABLE (bool, show_region_cue_markers, "show-region-cue-markers", tr
|
|||
UI_CONFIG_VARIABLE (bool, show_name_highlight, "show-name-highlight", false)
|
||||
UI_CONFIG_VARIABLE (ARDOUR::ClockDeltaMode, primary_clock_delta_mode, "primary-clock-delta-mode", NoDelta)
|
||||
UI_CONFIG_VARIABLE (ARDOUR::ClockDeltaMode, secondary_clock_delta_mode, "secondary-clock-delta-mode", NoDelta)
|
||||
UI_CONFIG_VARIABLE (uint64_t, clock_display_limit, "clock-display-limit", 2592000) /* seconds; default 30days (720h), 0 = unlimited */
|
||||
UI_CONFIG_VARIABLE (ARDOUR::samplecnt_t, clock_display_limit, "clock-display-limit", 8553600) /* seconds; default 99h, 0 = unlimited */
|
||||
UI_CONFIG_VARIABLE (bool, show_track_meters, "show-track-meters", true)
|
||||
UI_CONFIG_VARIABLE (bool, follow_edits, "follow-edits", false)
|
||||
UI_CONFIG_VARIABLE (bool, super_rapid_clock_update, "super-rapid-clock-update", false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue