mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 19:05:32 -04:00
Fix save
This commit is contained in:
parent
edfef80e5c
commit
234b29bbdd
@ -83,7 +83,11 @@ class Entry
|
|||||||
|
|
||||||
def set_sort_title(sort_title : String | Nil, username : String)
|
def set_sort_title(sort_title : String | Nil, username : String)
|
||||||
Storage.default.set_entry_sort_title id, sort_title
|
Storage.default.set_entry_sort_title id, sort_title
|
||||||
|
if sort_title == "" || sort_title.nil?
|
||||||
|
@sort_title = nil
|
||||||
|
else
|
||||||
@sort_title = sort_title
|
@sort_title = sort_title
|
||||||
|
end
|
||||||
|
|
||||||
[false, true].each do |ascend|
|
[false, true].each do |ascend|
|
||||||
[SortMethod::Auto, SortMethod::Title].each do |sort_method|
|
[SortMethod::Auto, SortMethod::Title].each do |sort_method|
|
||||||
|
@ -302,7 +302,11 @@ class Title
|
|||||||
|
|
||||||
def set_sort_title(sort_title : String | Nil, username : String)
|
def set_sort_title(sort_title : String | Nil, username : String)
|
||||||
Storage.default.set_title_sort_title id, sort_title
|
Storage.default.set_title_sort_title id, sort_title
|
||||||
|
if sort_title == "" || sort_title.nil?
|
||||||
|
@sort_title = nil
|
||||||
|
else
|
||||||
@sort_title = sort_title
|
@sort_title = sort_title
|
||||||
|
end
|
||||||
|
|
||||||
[false, true].each do |ascend|
|
[false, true].each do |ascend|
|
||||||
[SortMethod::Auto, SortMethod::Title].each do |sort_method|
|
[SortMethod::Auto, SortMethod::Title].each do |sort_method|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user