mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-21 12:01:31 +00:00
MacOSX: Ensure that the heading bar is always visible when window is moved so that it can still be moved by user using mouse (https://github.com/veracrypt/VeraCrypt/issues/546)
This commit is contained in:
@@ -99,6 +99,9 @@ namespace VeraCrypt
|
||||
Connect( wxID_ANY, wxEVT_COMMAND_PREF_UPDATED, wxCommandEventHandler( MainFrame::OnPreferencesUpdated ) );
|
||||
Connect( wxID_ANY, wxEVT_COMMAND_OPEN_VOLUME_REQUEST, wxCommandEventHandler( MainFrame::OnOpenVolumeSystemRequest ) );
|
||||
|
||||
#ifdef TC_MACOSX
|
||||
Connect( wxID_ANY, wxEVT_MOVE, wxMoveEventHandler( MainFrame::OnMoveHandler ) );
|
||||
#endif
|
||||
}
|
||||
|
||||
MainFrame::~MainFrame ()
|
||||
@@ -119,6 +122,9 @@ namespace VeraCrypt
|
||||
Disconnect( wxID_ANY, wxEVT_COMMAND_UPDATE_VOLUME_LIST, wxCommandEventHandler( MainFrame::OnUpdateVolumeList ) );
|
||||
Disconnect( wxID_ANY, wxEVT_COMMAND_PREF_UPDATED, wxCommandEventHandler( MainFrame::OnPreferencesUpdated ) );
|
||||
Disconnect( wxID_ANY, wxEVT_COMMAND_OPEN_VOLUME_REQUEST, wxCommandEventHandler( MainFrame::OnOpenVolumeSystemRequest ) );
|
||||
#ifdef TC_MACOSX
|
||||
Disconnect( wxID_ANY, wxEVT_MOVE, wxMoveEventHandler( MainFrame::OnMoveHandler ) );
|
||||
#endif
|
||||
Core->VolumeMountedEvent.Disconnect (this);
|
||||
Core->VolumeDismountedEvent.Disconnect (this);
|
||||
Gui->OpenVolumeSystemRequestEvent.Disconnect (this);
|
||||
@@ -1723,4 +1729,11 @@ namespace VeraCrypt
|
||||
Core->WipePasswordCache();
|
||||
UpdateWipeCacheButton();
|
||||
}
|
||||
|
||||
#ifdef TC_MACOSX
|
||||
void MainFrame::OnMoveHandler(wxMoveEvent& event)
|
||||
{
|
||||
EnsureVisible (true);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user