forked from mia/Aegisub
More fixing main window title to be Apple HIG-alike
Originally committed to SVN as r1577.
This commit is contained in:
parent
50f6d65ace
commit
b20dcaaa5f
1 changed files with 10 additions and 1 deletions
|
@ -767,13 +767,22 @@ void FrameMain::UpdateTitle() {
|
|||
wxString newTitle = _T("");
|
||||
#ifndef __WXMAC__
|
||||
if (subsMod) newTitle << _T("* ");
|
||||
#endif
|
||||
if (AssFile::top->filename != _T("")) {
|
||||
wxFileName file (AssFile::top->filename);
|
||||
newTitle << file.GetFullName();
|
||||
}
|
||||
else newTitle << _T("Untitled");
|
||||
newTitle << _T(" - Aegisub ") << GetAegisubLongVersionString();
|
||||
#else
|
||||
// Apple HIG says "untitled" should not be capitalised
|
||||
// and the window is a document window, it shouldn't contain the app name
|
||||
// (The app name is already present in the menu bar)
|
||||
if (AssFile::top->filename != _T("")) {
|
||||
wxFileName file (AssFile::top->filename);
|
||||
newTitle << file.GetFullName();
|
||||
}
|
||||
else newTitle << _T("untitled");
|
||||
#endif
|
||||
|
||||
#ifdef __WXMAC__
|
||||
// On Mac, set the mark in the close button
|
||||
|
|
Loading…
Reference in a new issue