forked from mia/Aegisub
Make SubtitlesGrid listen for changes to "Subtitle/Grid/Hide Overrides" rather than refreshing it from the command
Originally committed to SVN as r5204.
This commit is contained in:
parent
bee57ccad3
commit
1664faf159
2 changed files with 1 additions and 6 deletions
|
@ -102,9 +102,6 @@ struct grid_tag_cycle_hiding : public Command {
|
||||||
|
|
||||||
// Set option
|
// Set option
|
||||||
OPT_SET("Subtitle/Grid/Hide Overrides")->SetInt(tagMode);
|
OPT_SET("Subtitle/Grid/Hide Overrides")->SetInt(tagMode);
|
||||||
|
|
||||||
// Refresh grid
|
|
||||||
c->SubsGrid->Refresh(false);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -118,7 +115,6 @@ struct grid_tags_hide : public Command {
|
||||||
|
|
||||||
void operator()(agi::Context *c) {
|
void operator()(agi::Context *c) {
|
||||||
OPT_SET("Subtitle/Grid/Hide Overrides")->SetInt(2);
|
OPT_SET("Subtitle/Grid/Hide Overrides")->SetInt(2);
|
||||||
c->SubsGrid->Refresh(false);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -132,7 +128,6 @@ struct grid_tags_show : public Command {
|
||||||
|
|
||||||
void operator()(agi::Context *c) {
|
void operator()(agi::Context *c) {
|
||||||
OPT_SET("Subtitle/Grid/Hide Overrides")->SetInt(0);
|
OPT_SET("Subtitle/Grid/Hide Overrides")->SetInt(0);
|
||||||
c->SubsGrid->Refresh(false);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -146,7 +141,6 @@ struct grid_tags_simplify : public Command {
|
||||||
|
|
||||||
void operator()(agi::Context *c) {
|
void operator()(agi::Context *c) {
|
||||||
OPT_SET("Subtitle/Grid/Hide Overrides")->SetInt(1);
|
OPT_SET("Subtitle/Grid/Hide Overrides")->SetInt(1);
|
||||||
c->SubsGrid->Refresh(false);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,7 @@ SubtitlesGrid::SubtitlesGrid(FrameMain* parentFr, wxWindow *parent, wxWindowID i
|
||||||
|
|
||||||
OnHighlightVisibleChange(*OPT_GET("Subtitle/Grid/Highlight Subtitles in Frame"));
|
OnHighlightVisibleChange(*OPT_GET("Subtitle/Grid/Highlight Subtitles in Frame"));
|
||||||
OPT_SUB("Subtitle/Grid/Highlight Subtitles in Frame", &SubtitlesGrid::OnHighlightVisibleChange, this);
|
OPT_SUB("Subtitle/Grid/Highlight Subtitles in Frame", &SubtitlesGrid::OnHighlightVisibleChange, this);
|
||||||
|
OPT_SUB("Subtitle/Grid/Hide Overrides", std::tr1::bind(&SubtitlesGrid::Refresh, this, false, (const wxRect*)0));
|
||||||
ass->AddCommitListener(&SubtitlesGrid::OnCommit, this);
|
ass->AddCommitListener(&SubtitlesGrid::OnCommit, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue