Skip to content

Commit

Permalink
Merge pull request #300 from torikulhabib/master
Browse files Browse the repository at this point in the history
Fix Sort by time
  • Loading branch information
torikulhabib authored Aug 13, 2024
2 parents ec1f4d9 + 681069b commit 9158842
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/GabutWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,9 @@ namespace Gabut {
row1.set_header (label);
} else {
if (showtime.active) {
if (formdate != new GLib.DateTime.from_unix_local (row2.timeadded).format (@"%A - %I:%M %p - %d %B %Y")) {
if (formdate != new GLib.DateTime.from_unix_local (row2.timeadded).format ("%A - %I:%M %p ") && !showdate.active) {
row1.set_header (label);
} else if (formdate != new GLib.DateTime.from_unix_local (row2.timeadded).format ("%A - %I:%M %p - %d %B %Y") && showdate.active) {
row1.set_header (label);
} else {
row1.set_header (null);
Expand Down

0 comments on commit 9158842

Please sign in to comment.