Skip to content

Commit

Permalink
Remove "Storages" functionality completely
Browse files Browse the repository at this point in the history
It is not necessary to expose this functionality for BlueMap GUI

Maybe I'll add it back in when there's an Advanced Mode toggle, or something...
  • Loading branch information
TechnicJelle committed Sep 8, 2024
1 parent 63ad121 commit 07741bd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
Binary file modified .github/readme_assets/control_panel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/readme_assets/map_config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 0 additions & 11 deletions lib/project_view/sidebar/sidebar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Sidebar extends ConsumerStatefulWidget {

class _ConfigTreeState extends ConsumerState<Sidebar> {
final List<File> configs = [];
final List<File> storages = [];
final List<File> maps = [];

final List<StreamSubscription<FileSystemEvent>> subscriptions = [];
Expand All @@ -44,13 +43,6 @@ class _ConfigTreeState extends ConsumerState<Sidebar> {
}

if (entity is Directory) {
if (p.basename(entity.path) == "storages") {
for (final FileSystemEntity storage in entity.listSync()) {
if (storage is File) {
storages.add(storage);
}
}
}
if (p.basename(entity.path) == "maps") {
for (final FileSystemEntity map in entity.listSync()) {
if (map is File) {
Expand Down Expand Up @@ -113,7 +105,6 @@ class _ConfigTreeState extends ConsumerState<Sidebar> {

//sort all lists alphabetically
configs.sort((a, b) => a.path.compareTo(b.path));
storages.sort((a, b) => a.path.compareTo(b.path));
sortMaps();
}

Expand Down Expand Up @@ -183,8 +174,6 @@ class _ConfigTreeState extends ConsumerState<Sidebar> {
const _ControlPanelTile(),
const Text(" Configs"),
for (final File config in configs) ConfigTile(config),
const Text(" Storages"),
for (final File storage in storages) ConfigTile(storage),
const Text(" Maps"),
for (final File map in maps) MapTile(map),
const NewMapButton(),
Expand Down

0 comments on commit 07741bd

Please sign in to comment.