mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-23 19:31:44 +00:00
Check the saved window coordinates. If the window is minimized when mmg is closed then the coordinates are negative. Moving the window to that position upon restart will make it invisible.
This commit is contained in:
parent
f4d1a9d351
commit
16bb7e252a
@ -1,5 +1,9 @@
|
||||
2005-06-07 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mmg: bug fix: If mmg was minimized when it was closed (e.g. with
|
||||
Windows' "Show desktop" function) then it didn't show up after a
|
||||
restart and could only be shown by maximizing it.
|
||||
|
||||
* mkvmerge: bug fix: If a OGM style chapter file contains empty
|
||||
chapter names ('CHAPTER01NAME=' without something after the '=')
|
||||
then this chapter's timecode is used as the name instead of
|
||||
|
@ -780,7 +780,9 @@ mmg_dialog::mmg_dialog():
|
||||
cfg = wxConfigBase::Get();
|
||||
cfg->SetPath(wxT("/GUI"));
|
||||
if (cfg->Read(wxT("window_position_x"), &window_pos_x) &&
|
||||
cfg->Read(wxT("window_position_y"), &window_pos_y))
|
||||
cfg->Read(wxT("window_position_y"), &window_pos_y) &&
|
||||
(0 < window_pos_x) && (0xffff > window_pos_x) &&
|
||||
(0 < window_pos_y) && (0xffff > window_pos_y))
|
||||
Move(window_pos_x, window_pos_y);
|
||||
cfg->Read(wxT("warned_chapterditor_not_empty"),
|
||||
&warned_chapter_editor_not_empty, false);
|
||||
|
Loading…
Reference in New Issue
Block a user