diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-30 13:10:35 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-30 13:10:35 -0500 |
commit | d9758157b9bb8e00b77f20ad87b07e85d80797d5 (patch) | |
tree | bd625897d7227334d4dc1c071f44b44775768905 /app/models | |
parent | 90130014dd27a909fda8a63d3ce520d4d31fd68c (diff) |
add an optional blinking cursor to console formatting
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/account.rb | 1 | ||||
-rw-r--r-- | app/models/user.rb | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 05fb387aa..6528a7ae9 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -154,6 +154,7 @@ class Account < ApplicationRecord :hides_filtered_gap?, :hides_mascot?, :hides_captions?, + :shows_cursor?, to: :user, prefix: true, diff --git a/app/models/user.rb b/app/models/user.rb index c14c33567..cbe62d189 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -128,6 +128,7 @@ class User < ApplicationRecord :roar_lifespan, :delayed_roars, :delayed_for, + :show_cursor, :auto_play_gif, :default_sensitive, @@ -314,6 +315,10 @@ class User < ApplicationRecord @_delayed_for ||= (settings.delayed_for || 60) end + def shows_cursor? + @show_cursor ||= (settings.show_cursor || false) + end + def defaults_to_local_only? @defaults_to_local_only ||= (settings.default_local || false) end |