Skip to content

Commit

Permalink
Fix Sort by time
Browse files Browse the repository at this point in the history
  • Loading branch information
torikulhabib committed Aug 13, 2024
1 parent 1140d1a commit 681069b
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 681069b

Please sign in to comment.