mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-18 20:40:43 +01:00
Don't show the Script Manager entry in the Tools menu if scripting support is disabled. Fixes issue #1536
This commit is contained in:
parent
4c2a2bb0fe
commit
90c35b3e3c
@ -696,12 +696,17 @@ MainWindow::MainWindow(
|
||||
wiimotedev_shortcuts_.reset(new WiimotedevShortcuts(osd_, this, player_));
|
||||
#endif
|
||||
|
||||
// If we support more languages this ifdef will need to be changed.
|
||||
#ifdef HAVE_SCRIPTING_PYTHON
|
||||
scripts_->Init(ScriptManager::GlobalData(
|
||||
library_, library_view_->view(), player_, playlists_,
|
||||
task_manager_, settings_dialog_.get(), radio_model_));
|
||||
connect(ui_->action_script_manager, SIGNAL(triggered()), SLOT(ShowScriptDialog()));
|
||||
|
||||
library_view_->view()->SetScriptManager(scripts_);
|
||||
#else
|
||||
ui_->action_script_manager->setVisible(false);
|
||||
#endif
|
||||
|
||||
CheckFullRescanRevisions();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user