Добавил обновление информации в просмотрщике MD при сохранении открытого в редакторе файла.

This commit is contained in:
2026-04-08 18:17:24 +03:00
parent 82b94e5b4e
commit 4a967c6b6c
6 changed files with 79 additions and 52 deletions

View File

@@ -395,6 +395,14 @@ namespace eval FileOper {
# puts "$f was saved"
close $f
ResetModifiedFlag $nbEditorItem $nbEditorWindow
# Проверяем если в редакторе открыт MD-файл и запущен его просмотрщик
if {[string toupper [string trimleft [file extension $filePath] "."]] eq "MD" && [winfo exists .viewer]} {
if {[wm title .viewer] eq $filePath} {
ShowMD $filePath true
}
}
if {[file tail $filePath] eq "projman.ini"} {
Config::read $dir(cfg)
}