MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / UpdateTitle

Method UpdateTitle

src/frame_main.cpp:248–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void FrameMain::UpdateTitle() {
249 wxString newTitle;
250 if (context->subsController->IsModified()) newTitle << "* ";
251 newTitle << context->subsController->Filename().filename().wstring();
252
253#ifndef __WXMAC__
254 newTitle << " - Aegisub " << GetAegisubLongVersionString();
255#endif
256
257#if defined(__WXMAC__)
258 // On Mac, set the mark in the close button
259 OSXSetModified(context->subsController->IsModified());
260#endif
261
262 if (GetTitle() != newTitle) SetTitle(newTitle);
263}
264
265void FrameMain::OnVideoOpen(AsyncVideoProvider *provider) {
266 if (!provider) {

Callers

nothing calls this directly

Calls 3

IsModifiedMethod · 0.80
FilenameMethod · 0.80

Tested by

no test coverage detected