FIX: A non-Latin folder name is not shown correctly in the title bar (fixes #354)

This commit is contained in:
Alexander Koblov 2022-04-02 17:00:01 +03:00
commit 5f0ae995a5

View file

@ -1171,7 +1171,7 @@ begin
LoadTabs;
// Must be after LoadTabs
TDriveWatcher.Initialize(GetWindowHandle(Self));
TDriveWatcher.Initialize(GetWindowHandle(Application.MainForm));
TDriveWatcher.AddObserver(@OnDriveWatcherEvent);
{$IF (DEFINED(LCLQT) or DEFINED(LCLQT5)) and not DEFINED(MSWINDOWS)}