mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
libobs: Add file saving to file property
(This commit also modifies the UI) Closes jp9000/obs-studio#502
This commit is contained in:
parent
4b4ddbb33e
commit
d75ed15037
|
@ -72,6 +72,7 @@ enum obs_combo_type {
|
|||
|
||||
enum obs_path_type {
|
||||
OBS_PATH_FILE,
|
||||
OBS_PATH_FILE_SAVE,
|
||||
OBS_PATH_DIRECTORY
|
||||
};
|
||||
|
||||
|
|
|
@ -1496,6 +1496,10 @@ bool WidgetInfo::PathChanged(const char *setting)
|
|||
path = QFileDialog::getOpenFileName(view,
|
||||
QT_UTF8(desc), QT_UTF8(default_path),
|
||||
QT_UTF8(filter));
|
||||
else if (type == OBS_PATH_FILE_SAVE)
|
||||
path = QFileDialog::getSaveFileName(view,
|
||||
QT_UTF8(desc), QT_UTF8(default_path),
|
||||
QT_UTF8(filter));
|
||||
|
||||
if (path.isEmpty())
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue