2020-12-05 13:08:24 +01:00
|
|
|
#include "vfs_dialog_tab.h"
|
2020-11-06 18:45:06 +01:00
|
|
|
#include "Utilities/Config.h"
|
2017-06-15 12:22:06 +02:00
|
|
|
|
2022-05-08 20:18:42 +02:00
|
|
|
vfs_dialog_tab::vfs_dialog_tab(const QString& name, gui_save list_location, cfg::string* cfg_node, std::shared_ptr<gui_settings> _gui_settings, QWidget* parent)
|
|
|
|
|
: vfs_dialog_path_widget(name, QString::fromStdString(cfg_node->to_string()), QString::fromStdString(cfg_node->def), std::move(list_location), std::move(_gui_settings), parent)
|
|
|
|
|
, m_cfg_node(cfg_node)
|
2017-06-15 12:22:06 +02:00
|
|
|
{
|
|
|
|
|
}
|
2019-07-21 10:07:20 +02:00
|
|
|
|
2022-05-08 20:18:42 +02:00
|
|
|
void vfs_dialog_tab::set_settings() const
|
2019-07-21 10:07:20 +02:00
|
|
|
{
|
2022-05-08 20:18:42 +02:00
|
|
|
m_gui_settings->SetValue(m_list_location, get_dir_list());
|
|
|
|
|
m_cfg_node->from_string(get_selected_path());
|
2019-07-21 10:07:20 +02:00
|
|
|
}
|