mirror of
https://github.com/JanGross/quicknotes.git
synced 2026-12-01 02:17:00 +01:00
Register nextcloud capabilities to check api versions..
<?xml version="1.0"?>
<ocs>
...
<capabilities>
...
<quicknotes>
<version>0.6.0</version>
<api_version>1.0</api_version>
</quicknotes>
...
</capabilities>
</ocs>
This commit is contained in:
1 parent
3807b83796
commit
959aa90f1a
3 files changed
+60
-4
No files matched your search
@@ -55,11 +55,11 @@ class SettingsService {
|
||||
|
||||
|
||||
public function getColorForNewNotes(): string {
|
||||
return $this->config->getUserValue($this->userId, Application::APP_NAME, self::COLOR_FOR_NEW_NOTES_KEY, self::DEFAULT_COLOR_FOR_NEW_NOTES);
|
||||
return $this->config->getUserValue($this->userId, Application::APP_ID, self::COLOR_FOR_NEW_NOTES_KEY, self::DEFAULT_COLOR_FOR_NEW_NOTES);
|
||||
}
|
||||
|
||||
public function setColorForNewNotes(string $color) {
|
||||
$this->config->setUserValue($this->userId, Application::APP_NAME, self::COLOR_FOR_NEW_NOTES_KEY, $color);
|
||||
$this->config->setUserValue($this->userId, Application::APP_ID, self::COLOR_FOR_NEW_NOTES_KEY, $color);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user