Skip to content

Commit

Permalink
Add signalGetPrefsComplete
Browse files Browse the repository at this point in the history
Developers can use this to act on tweaks settings as soon as they're
available.
  • Loading branch information
Josh Palmer committed Sep 16, 2012
1 parent 38a5f90 commit 68e50ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Src/base/settings/Preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,9 @@ bool Preferences::getPreferencesCallback(LSHandle *sh, LSMessage *message, void

if (json && !is_error(json))
json_object_put(json);


Q_EMIT prefObjPtr->signalGetPrefsComplete();

return true;
}

Expand Down
1 change: 1 addition & 0 deletions Src/base/settings/Preferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ class Preferences : public QObject
void signalMuteSoundChanged(bool muteOn);
void signalAlsEnabled(bool enable);
void signalDeviceNameChanged(std::string deviceName);
void signalGetPrefsComplete();

private:

Expand Down

0 comments on commit 68e50ce

Please sign in to comment.