Updated github actions windows build.

Updated efsw.
ecode: Minor fix in app title when saving files.
This commit is contained in:
Martín Lucas Golini
2022-02-27 03:11:06 -03:00
parent 36f5fb90bc
commit a54da7d6da
3 changed files with 6 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ on: [push, pull_request]
jobs:
Windows:
runs-on: windows-latest
runs-on: windows-2019
env:
MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\
steps:

View File

@@ -66,11 +66,15 @@ void App::saveAllProcess() {
if ( editor->getDocument().hasFilepath() ) {
editor->save();
updateEditorTabTitle( editor );
if ( mEditorSplitter->getCurEditor() == editor )
updateEditorTitle( editor );
mTmpDocs.erase( &editor->getDocument() );
} else {
UIFileDialog* dialog = saveFileDialog( editor, false );
dialog->addEventListener( Event::SaveFile, [&, editor]( const Event* ) {
updateEditorTabTitle( editor );
if ( mEditorSplitter->getCurEditor() == editor )
updateEditorTitle( editor );
} );
dialog->addEventListener( Event::OnWindowClose, [&, editor]( const Event* ) {
mTmpDocs.erase( &editor->getDocument() );