mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-13 08:35:45 -04:00
Abstract API token sys into a singleton component
This commit is contained in:
parent
533dbef0c7
commit
49b0de6ac7
7 changed files with 120 additions and 69 deletions
|
@ -19,6 +19,7 @@
|
|||
import QtQuick 2.0
|
||||
import QtQuick.Controls 2.0
|
||||
import org.retroshare.qml_components.LibresapiLocalClient 1.0
|
||||
import "." //Needed for TokensManager singleton
|
||||
|
||||
Item
|
||||
{
|
||||
|
@ -35,7 +36,7 @@ Item
|
|||
{
|
||||
chatModel.json = par.response
|
||||
token = JSON.parse(par.response).statetoken
|
||||
mainWindow.registerToken(token, refreshData)
|
||||
TokensManager.registerToken(token, refreshData)
|
||||
|
||||
if(chatListView.visible)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue