mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17: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();
|
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();
|
wasMaximized = isMaximized();
|
||||||
|
|
||||||
history.setSaveInterval( cfg.preferences.historyStoreInterval );
|
history.setSaveInterval( cfg.preferences.historyStoreInterval );
|
||||||
|
|
Loading…
Reference in a new issue