Skip to content

Commit 271ae27

Browse files
author
nix
committed
add postprocessing maximized window option
1 parent 206253b commit 271ae27

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

funscript_editor/config/settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ tracking_plausibility_check: False
3434

3535
# timeout for an ffmpeg stream
3636
ffmpeg_timeout_in_seconds: 15
37+
38+
# open post processing window in maximized mode
39+
open_postprocessing_maximized: True

funscript_editor/ui/funscript_generator_window.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,11 @@ def __next_postprocessing(self, last_metric, idx_keep, val_keep):
277277
if found_last:
278278
self.postprocessing_widget = PostprocessingWidget(metric, self.score[metric], self.video_info)
279279
self.postprocessing_widget.postprocessingCompleted.connect(self.__next_postprocessing)
280-
self.postprocessing_widget.show()
280+
if "open_postprocessing_maximized" in SETTINGS and SETTINGS["open_postprocessing_maximized"]:
281+
self.__logger.info("open postprocessing as maximized window")
282+
self.postprocessing_widget.showMaximized()
283+
else:
284+
self.postprocessing_widget.show()
281285
return
282286

283287
self.__funscript_generated(self.funscripts, "OK", True)

0 commit comments

Comments
 (0)