app: find a clip in the folder it was recorded to
History lists a timeline from the default recordings folder, where the daemon writes them, but review looked for its clip only there as well. A recording made into the folder chosen in settings therefore appeared in history with no video. The app now searches the configured folder first and the default one after it, and uses the path stored with the timeline when the recorder wrote one, so a clip stays playable after the setting moves and an older timeline still plays. Settings are read back after a save because the daemon resolves the chosen folder to an absolute path. The two Open folder buttons open the configured folder instead of the default one.
This commit is contained in:
1 parent
86fc7cea2f
commit
9e4349fe42
5 files changed
+167
-34
No files matched your search
@@ -397,8 +397,8 @@ fn quick(app: &App, p: Paint, kit: &rune_kit::Kit, layer: &mut Vec<El>, content:
|
||||
"open-recordings",
|
||||
"Open folder",
|
||||
false,
|
||||
|_app: &mut App| {
|
||||
crate::daemon::open_folder(&crate::daemon::recordings_dir());
|
||||
|app: &mut App| {
|
||||
crate::daemon::open_folder(&app.output_dir());
|
||||
},
|
||||
)),
|
||||
vec![ui::setting_row(
|
||||
@@ -479,8 +479,8 @@ fn recording(app: &App, p: Paint, kit: &rune_kit::Kit, layer: &mut Vec<El>, cont
|
||||
"open-output",
|
||||
"Open folder",
|
||||
false,
|
||||
|_app: &mut App| {
|
||||
crate::daemon::open_folder(&crate::daemon::recordings_dir());
|
||||
|app: &mut App| {
|
||||
crate::daemon::open_folder(&app.output_dir());
|
||||
},
|
||||
)),
|
||||
vec![
|
||||
|
||||
Reference in new issue
Block a user