mirror of https://github.com/odrling/Aegisub
Set the mark in the window close button to signal document modified, rather than prepending a star to the window title, on wxMac.
Originally committed to SVN as r1576.
This commit is contained in:
parent
eee384aa0f
commit
50f6d65ace
|
@ -765,13 +765,21 @@ void FrameMain::UpdateTitle() {
|
||||||
|
|
||||||
// Create ideal title
|
// Create ideal title
|
||||||
wxString newTitle = _T("");
|
wxString newTitle = _T("");
|
||||||
|
#ifndef __WXMAC__
|
||||||
if (subsMod) newTitle << _T("* ");
|
if (subsMod) newTitle << _T("* ");
|
||||||
|
#endif
|
||||||
if (AssFile::top->filename != _T("")) {
|
if (AssFile::top->filename != _T("")) {
|
||||||
wxFileName file (AssFile::top->filename);
|
wxFileName file (AssFile::top->filename);
|
||||||
newTitle << file.GetFullName();
|
newTitle << file.GetFullName();
|
||||||
}
|
}
|
||||||
else newTitle << _T("Untitled");
|
else newTitle << _T("Untitled");
|
||||||
newTitle << _T(" - Aegisub ") << GetAegisubLongVersionString();
|
newTitle << _T(" - Aegisub ") << GetAegisubLongVersionString();
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
// On Mac, set the mark in the close button
|
||||||
|
WindowRef wnd = (WindowRef)MacGetWindowRef();
|
||||||
|
SetWindowModified(wnd, subsMod);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Get current title
|
// Get current title
|
||||||
wxString curTitle = GetTitle();
|
wxString curTitle = GetTitle();
|
||||||
|
|
Loading…
Reference in New Issue