Skip to content

Commit

Permalink
Removed //TODO comments in favour of GitHub Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnicJelle committed Sep 3, 2024
1 parent 5b75e92 commit 9f3926b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions lib/config_tree.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ class _ConfigTreeState extends ConsumerState<ConfigTree> {
removeMap(File(moveEvent.path));
addMap(File(destination));

//TODO: Remove this in favour of an integrated rename function
final String prevMapID = p.basenameWithoutExtension(moveEvent.path);
final String nextMapID = p.basenameWithoutExtension(destination);

Expand Down Expand Up @@ -120,7 +119,6 @@ class _ConfigTreeState extends ConsumerState<ConfigTree> {
}

void sortMaps() {
//TODO: Sort maps based on internal `sorting` property
maps.sort((a, b) => a.path.compareTo(b.path));
}

Expand Down
2 changes: 1 addition & 1 deletion lib/console.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class ConsoleState extends ConsumerState<Console> {
curve: Curves.easeInOut,
)
.then((_) {
_scrollToBottom(); //TODO: remove the need for this. get animateTo to work properly and scroll fully down, instead.
_scrollToBottom();
});
}),
);
Expand Down
1 change: 0 additions & 1 deletion lib/control_panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ class ControlPanel extends ConsumerWidget {
ElevatedButton.icon(
onPressed: processState == RunningProcessState.running
? () async {
//TODO: Unhardcode the port; get from the process output
if (!await launchUrl(Uri.parse("http://localhost:8100"))) {
throw Exception("Could not launch url!");
}
Expand Down
7 changes: 1 addition & 6 deletions lib/map_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ class _MapTileState extends ConsumerState<MapTile> {
final File? openConfig = ref.watch(openConfigProvider);

return GestureDetector(
onSecondaryTap: () {
//TODO: Open right click menu:
// - Rename config and map data directory
// - Delete config and map data directory
//maybe even with showDialog..?
},
onSecondaryTap: () {/*right click menu will come here*/},
child: MouseRegion(
onEnter: (_) => setState(() => _isHovering = true),
onHover: (_) => setState(() => _isHovering = true),
Expand Down

0 comments on commit 9f3926b

Please sign in to comment.