Skip to content

Commit

Permalink
Final Bug Fix before release
Browse files Browse the repository at this point in the history
  • Loading branch information
goxr3plus committed Jun 9, 2018
1 parent 7dcaf9e commit f474333
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion resources/fxml/PlayListModesTabPane.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<FontIcon iconColor="#ff3c26" iconLiteral="fas-heart" iconSize="20" />
</graphic>
</Tab>
<Tab fx:id="downloadsTab" closable="false" disable="true" text="Downloads ( Coming... )">
<Tab fx:id="downloadsTab" closable="false" disable="true" text="Coming...">
<content>
<StackPane prefHeight="150.0" prefWidth="200.0">
<children>
Expand Down
6 changes: 3 additions & 3 deletions resources/fxml/smartcontroller/SmartController.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@
<FontIcon iconColor="WHITE" iconLiteral="gmi-album" iconSize="24" />
</graphic>
</Tab>
<Tab fx:id="foldersModeTab" text="Folders">
<Tab fx:id="foldersModeTab" disable="true" text="Coming...">
<graphic>
<FontIcon iconColor="#ddaa33" iconLiteral="gmi-folder" iconSize="24" />
</graphic>
</Tab>
<Tab fx:id="filtersModeTab" text="Filter : Artists">
<Tab fx:id="filtersModeTab" disable="true" text="Coming...">
<graphic>
<FontIcon iconColor="#f5ca30" iconLiteral="typ-filter" iconSize="24" />
</graphic>
Expand Down Expand Up @@ -287,4 +287,4 @@
</children>
</VBox>
</children>
</fx:root>
</fx:root>
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ public static void startAppWithUser(User selectedUser) {
//sideBar.getNameLabel().textProperty().bind(userInfoMode.getUserName().textProperty())

//Start these important Threads
//new MediaUpdaterService().start();
new MediaUpdaterService().start();
//new XPlayersFilterService().start()
webBrowser.startChromiumUpdaterService();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ else if (controller.getFiltersModeTab().isSelected())

//XPlayers
Main.xPlayersList.getList().stream()
//Only if the Settings Mode is selected
.filter(xPlayerController -> xPlayerController.getSettingsToggle().isSelected())
//Extra filtering
.filter(xPlayerController -> {
//If extended pass
Expand All @@ -148,16 +146,19 @@ else if (xPlayerController.getKey() != 0 && Main.topBar.isTabSelected(Main.topBa
//Fix the emotion image
xPlayerController.changeEmotionImage(Main.emotionListsController.getEmotionForMedia(xPlayerController.getxPlayerModel().songPathProperty().get()));

//Find the smartController
SmartController controller = xPlayerController.getxPlayerPlayList().getSmartController();

//Normal Mode
if (controller.getNormalModeTab().isSelected())
filterController(controller, controller.getItemsObservableList());

//Filters Mode
else if (controller.getFiltersModeTab().isSelected())
filterController(controller, controller.getFiltersMode().getMediaTableViewer().getTableView().getItems());
//Only if the Settings Mode is selected
if (xPlayerController.getSettingsToggle().isSelected()) {
//Find the smartController
SmartController controller = xPlayerController.getxPlayerPlayList().getSmartController();

//Normal Mode
if (controller.getNormalModeTab().isSelected())
filterController(controller, controller.getItemsObservableList());

//Filters Mode
else if (controller.getFiltersModeTab().isSelected())
filterController(controller, controller.getFiltersMode().getMediaTableViewer().getTableView().getItems());
}
});

//--
Expand Down

0 comments on commit f474333

Please sign in to comment.