2020-03-30 04:58:39 +03:00
|
|
|
/*
|
|
|
|
Copyright 2019-2020 Dmitry Isaenko
|
|
|
|
|
|
|
|
This file is part of NS-USBloader.
|
|
|
|
|
|
|
|
NS-USBloader is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
NS-USBloader is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with NS-USBloader. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2019-03-17 19:45:51 +03:00
|
|
|
package nsusbloader.Controllers;
|
|
|
|
|
|
|
|
import javafx.fxml.FXML;
|
|
|
|
|
2020-07-30 16:46:32 +03:00
|
|
|
public class SettingsController {
|
2019-06-14 05:06:26 +03:00
|
|
|
@FXML
|
2020-07-30 16:46:32 +03:00
|
|
|
private SettingsBlockGenericController settingsBlockGenericController;
|
2020-07-30 02:31:37 +03:00
|
|
|
@FXML
|
|
|
|
private SettingsBlockTinfoilController settingsBlockTinfoilController;
|
2020-07-30 16:46:32 +03:00
|
|
|
@FXML
|
|
|
|
private SettingsBlockGoldleafController settingsBlockGoldleafController;
|
2020-07-30 02:31:37 +03:00
|
|
|
|
2020-07-30 16:46:32 +03:00
|
|
|
public SettingsBlockGenericController getGenericSettings(){ return settingsBlockGenericController; }
|
|
|
|
public SettingsBlockGoldleafController getGoldleafSettings(){ return settingsBlockGoldleafController; }
|
2020-07-30 02:31:37 +03:00
|
|
|
public SettingsBlockTinfoilController getTinfoilSettings(){ return settingsBlockTinfoilController; }
|
|
|
|
|
2020-07-07 02:20:57 +03:00
|
|
|
public void updatePreferencesOnExit(){
|
2020-07-30 16:46:32 +03:00
|
|
|
settingsBlockGenericController.updatePreferencesOnExit();
|
|
|
|
settingsBlockGoldleafController.updatePreferencesOnExit();
|
2020-07-30 02:31:37 +03:00
|
|
|
settingsBlockTinfoilController.updatePreferencesOnExit();
|
2019-09-26 05:15:37 +03:00
|
|
|
}
|
2019-03-19 05:06:18 +03:00
|
|
|
}
|