add option to auto-scan a directory for projects
This commit is contained in:
parent
cf04e1a827
commit
f7eff51969
2 changed files with 7 additions and 0 deletions
|
@ -386,6 +386,8 @@ void EditorSettings::_load_defaults() {
|
|||
|
||||
set("global/font","");
|
||||
hints["global/font"]=PropertyInfo(Variant::STRING,"global/font",PROPERTY_HINT_GLOBAL_FILE,"*.fnt");
|
||||
set("global/autoscan_project_path","");
|
||||
hints["global/autoscan_project_path"]=PropertyInfo(Variant::STRING,"global/autoscan_project_path",PROPERTY_HINT_GLOBAL_DIR);
|
||||
set("global/default_project_path","");
|
||||
hints["global/default_project_path"]=PropertyInfo(Variant::STRING,"global/default_project_path",PROPERTY_HINT_GLOBAL_DIR);
|
||||
set("global/default_project_export_path","");
|
||||
|
|
|
@ -973,6 +973,11 @@ ProjectManager::ProjectManager() {
|
|||
|
||||
npdialog->connect("project_created", this,"_load_recent_projects");
|
||||
_load_recent_projects();
|
||||
|
||||
if ( EditorSettings::get_singleton()->get("global/autoscan_project_path") ) {
|
||||
_scan_begin( EditorSettings::get_singleton()->get("global/autoscan_project_path") );
|
||||
}
|
||||
|
||||
//get_ok()->set_text("Open");
|
||||
//get_ok()->set_text("Exit");
|
||||
|
||||
|
|
Loading…
Reference in a new issue