Skip to content

Commit fc76058

Browse files
committed
Project sotring based on date modified
1 parent 98d9b91 commit fc76058

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/homepage.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,13 @@ class _HomePageState extends State<HomePage> {
268268
await loadPrefs();
269269
setState(() {
270270
projectsWidgets.clear();
271-
/*rpm.projects.sort((CCSolution a, CCSolution b) {
271+
rpm.projects.sort((CCSolution a, CCSolution b) {
272272
return b.dateModified.compareTo(a.dateModified);
273-
});*/
273+
});
274274
for (CCSolution p in rpm.projects) {
275-
if (p.name == "")
276-
continue; // TODO: add better way to check if project is corrupt
275+
if (p.name == "") {
276+
continue;
277+
} // TODO: add better way to check if project is corrupt
277278
debugPrint(p.name);
278279
projectsWidgets.add(ListTile(
279280
onTap: () {

0 commit comments

Comments
 (0)