Skip to content

Commit

Permalink
add postprocessing maximized window option
Browse files Browse the repository at this point in the history
  • Loading branch information
nix committed Jan 28, 2024
1 parent 206253b commit 271ae27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions funscript_editor/config/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ tracking_plausibility_check: False

# timeout for an ffmpeg stream
ffmpeg_timeout_in_seconds: 15

# open post processing window in maximized mode
open_postprocessing_maximized: True
6 changes: 5 additions & 1 deletion funscript_editor/ui/funscript_generator_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ def __next_postprocessing(self, last_metric, idx_keep, val_keep):
if found_last:
self.postprocessing_widget = PostprocessingWidget(metric, self.score[metric], self.video_info)
self.postprocessing_widget.postprocessingCompleted.connect(self.__next_postprocessing)
self.postprocessing_widget.show()
if "open_postprocessing_maximized" in SETTINGS and SETTINGS["open_postprocessing_maximized"]:
self.__logger.info("open postprocessing as maximized window")
self.postprocessing_widget.showMaximized()
else:
self.postprocessing_widget.show()
return

self.__funscript_generated(self.funscripts, "OK", True)
Expand Down

0 comments on commit 271ae27

Please sign in to comment.