mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:24:08 +02:00
ScriptsLocation uses new settings
This commit is contained in:
parent
dc972df59d
commit
d15d8e0ad6
2 changed files with 6 additions and 2 deletions
|
@ -3743,8 +3743,12 @@ void Application::loadScriptURLDialog() {
|
|||
}
|
||||
}
|
||||
|
||||
QString Application::getScriptsLocation() const {
|
||||
return Settings().value("scriptsLocation", QString()).toString();
|
||||
}
|
||||
|
||||
void Application::setScriptsLocation(const QString& scriptsLocation) {
|
||||
_scriptsLocation = scriptsLocation;
|
||||
Settings().setValue("scriptsLocation", scriptsLocation);
|
||||
emit scriptLocationChanged(scriptsLocation);
|
||||
}
|
||||
|
||||
|
|
|
@ -302,7 +302,7 @@ public:
|
|||
|
||||
Bookmarks* getBookmarks() const { return _bookmarks; }
|
||||
|
||||
const QString& getScriptsLocation() const { return _scriptsLocation; }
|
||||
QString getScriptsLocation() const;
|
||||
void setScriptsLocation(const QString& scriptsLocation);
|
||||
|
||||
signals:
|
||||
|
|
Loading…
Reference in a new issue