mirror of https://github.com/odrling/Aegisub
can disable dragging start/end times with config option "disable dragging times" (requested)
Originally committed to SVN as r1669.
This commit is contained in:
parent
2c366e76ee
commit
e0b5576104
|
@ -1496,7 +1496,7 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event) {
|
|||
// Line timing mode
|
||||
if (!karTime) {
|
||||
// Grab start
|
||||
if (abs64 (x - selStart) < 6) {
|
||||
if (abs64 (x - selStart) < 6 && Options.AsBool(_T("Disable Dragging Times"))==false) {
|
||||
wxCursor cursor(wxCURSOR_SIZEWE);
|
||||
SetCursor(cursor);
|
||||
defCursor = false;
|
||||
|
@ -1507,7 +1507,7 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event) {
|
|||
}
|
||||
|
||||
// Grab end
|
||||
else if (abs64 (x - selEnd) < 6) {
|
||||
else if (abs64 (x - selEnd) < 6 && Options.AsBool(_T("Disable Dragging Times"))==false) {
|
||||
wxCursor cursor(wxCURSOR_SIZEWE);
|
||||
SetCursor(cursor);
|
||||
defCursor = false;
|
||||
|
|
|
@ -175,6 +175,7 @@ void OptionsManager::LoadDefaults(bool onlyDefaults) {
|
|||
SetInt(_T("Audio lead out"),300);
|
||||
SetModificationType(MOD_AUDIO);
|
||||
SetInt(_T("Audio Inactive Lines Display Mode"),1);
|
||||
SetBool(_T("Disable Dragging Times"), false);
|
||||
|
||||
// Audio Advanced
|
||||
SetModificationType(MOD_AUDIO_RELOAD);
|
||||
|
|
Loading…
Reference in New Issue