mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-01 16:00:51 +02:00
sessions: switch to settings struct.
This commit is contained in:
parent
d004ddd68f
commit
81867d811b
9 changed files with 113 additions and 80 deletions
|
@ -60,11 +60,11 @@ func (session *SessionCtx) IsHost() bool {
|
|||
}
|
||||
|
||||
func (session *SessionCtx) PrivateModeEnabled() bool {
|
||||
return session.manager.PrivateMode() && !session.profile.IsAdmin
|
||||
return session.manager.Settings().PrivateMode && !session.profile.IsAdmin
|
||||
}
|
||||
|
||||
func (session *SessionCtx) SetCursor(cursor types.Cursor) {
|
||||
if session.manager.InactiveCursors() && session.profile.SendsInactiveCursor {
|
||||
if session.manager.Settings().InactiveCursors && session.profile.SendsInactiveCursor {
|
||||
session.manager.SetCursor(cursor, session)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue