mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Mac-specific: Check Accessibility API at start with auto scan popup (issue #129)
This commit is contained in:
parent
ce4a212155
commit
ace29d367f
|
@ -728,6 +728,12 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
|
|||
|
||||
updateStatusLine();
|
||||
|
||||
#ifdef Q_OS_MACX
|
||||
if( cfg.preferences.startWithScanPopupOn && !AXAPIEnabled() )
|
||||
mainStatusBar->showMessage( tr( "Accessibility API is not enabled" ), 10000,
|
||||
QPixmap( ":/icons/error.png" ) );
|
||||
#endif
|
||||
|
||||
wasMaximized = isMaximized();
|
||||
|
||||
history.setSaveInterval( cfg.preferences.historyStoreInterval );
|
||||
|
|
Loading…
Reference in a new issue