@@ -983,7 +983,7 @@ def actionUpdate_trigger(self, checked=True):
983
983
QMessageBox .information (self , "Error !" , "Unable to open the Download web page" )
984
984
log .error ("Unable to open the download page" , exc_info = 1 )
985
985
986
- def actionPlay_trigger (self , checked , force = None ):
986
+ def actionPlay_trigger (self , checked = True , force = None ):
987
987
if force == "pause" :
988
988
self .actionPlay .setChecked (False )
989
989
elif force == "play" :
@@ -1114,7 +1114,7 @@ def actionSaveFrame_trigger(self, checked=True):
1114
1114
log .info ("Saving frame to %s" , framePath )
1115
1115
1116
1116
# Pause playback (to prevent crash since we are fixing to change the timeline's max size)
1117
- app . window . actionPlay_trigger (None , force = "pause" )
1117
+ self . actionPlay_trigger (force = "pause" )
1118
1118
1119
1119
# Save current cache object and create a new CacheMemory object (ignore quality and scale prefs)
1120
1120
old_cache_object = self .cache_object
@@ -1759,14 +1759,14 @@ def keyPressEvent(self, event):
1759
1759
def actionProfile_trigger (self ):
1760
1760
# Show dialog
1761
1761
from windows .profile import Profile
1762
+ log .debug ("Showing preferences dialog" )
1762
1763
win = Profile ()
1763
1764
# Run the dialog event loop - blocking interaction on this window during this time
1764
1765
result = win .exec_ ()
1765
- if result == QDialog .Accepted :
1766
- log .info ('Profile add confirmed' )
1766
+ log .debug ("Preferences dialog closed" )
1767
1767
1768
1768
def actionSplitClip_trigger (self ):
1769
- log .info ("actionSplitClip_trigger" )
1769
+ log .debug ("actionSplitClip_trigger" )
1770
1770
1771
1771
# Loop through selected files (set 1 selected file if more than 1)
1772
1772
f = self .files_model .current_file ()
@@ -1787,7 +1787,7 @@ def actionSplitClip_trigger(self):
1787
1787
log .info ('Cutting Cancelled' )
1788
1788
1789
1789
def actionRemove_from_Project_trigger (self ):
1790
- log .info ("actionRemove_from_Project_trigger" )
1790
+ log .debug ("actionRemove_from_Project_trigger" )
1791
1791
1792
1792
# Loop through selected files
1793
1793
for f in self .selected_files ():
@@ -1808,7 +1808,7 @@ def actionRemove_from_Project_trigger(self):
1808
1808
get_app ().window .refreshFrameSignal .emit ()
1809
1809
1810
1810
def actionRemoveClip_trigger (self ):
1811
- log .info ('actionRemoveClip_trigger' )
1811
+ log .debug ('actionRemoveClip_trigger' )
1812
1812
1813
1813
# Loop through selected clips
1814
1814
for clip_id in deepcopy (self .selected_clips ):
@@ -1825,14 +1825,14 @@ def actionRemoveClip_trigger(self):
1825
1825
get_app ().window .refreshFrameSignal .emit ()
1826
1826
1827
1827
def actionProperties_trigger (self ):
1828
- log .info ('actionProperties_trigger' )
1828
+ log .debug ('actionProperties_trigger' )
1829
1829
1830
1830
# Show properties dock
1831
1831
if not self .dockProperties .isVisible ():
1832
1832
self .dockProperties .show ()
1833
1833
1834
1834
def actionRemoveEffect_trigger (self ):
1835
- log .info ('actionRemoveEffect_trigger' )
1835
+ log .debug ('actionRemoveEffect_trigger' )
1836
1836
1837
1837
# Loop through selected clips
1838
1838
for effect_id in deepcopy (self .selected_effects ):
@@ -1864,10 +1864,10 @@ def actionRemoveEffect_trigger(self):
1864
1864
self .removeSelection (effect_id , "effect" )
1865
1865
1866
1866
# Refresh preview
1867
- get_app (). window .refreshFrameSignal .emit ()
1867
+ self .refreshFrameSignal .emit ()
1868
1868
1869
1869
def actionRemoveTransition_trigger (self ):
1870
- log .info ('actionRemoveTransition_trigger' )
1870
+ log .debug ('actionRemoveTransition_trigger' )
1871
1871
1872
1872
# Loop through selected clips
1873
1873
for tran_id in deepcopy (self .selected_transitions ):
@@ -1881,10 +1881,10 @@ def actionRemoveTransition_trigger(self):
1881
1881
t .delete ()
1882
1882
1883
1883
# Refresh preview
1884
- get_app (). window .refreshFrameSignal .emit ()
1884
+ self .refreshFrameSignal .emit ()
1885
1885
1886
1886
def actionRemoveTrack_trigger (self ):
1887
- log .info ('actionRemoveTrack_trigger' )
1887
+ log .debug ('actionRemoveTrack_trigger' )
1888
1888
1889
1889
# Get translation function
1890
1890
_ = get_app ()._tr
@@ -1917,11 +1917,11 @@ def actionRemoveTrack_trigger(self):
1917
1917
self .selected_tracks = []
1918
1918
1919
1919
# Refresh preview
1920
- get_app (). window .refreshFrameSignal .emit ()
1920
+ self .refreshFrameSignal .emit ()
1921
1921
1922
1922
def actionLockTrack_trigger (self ):
1923
1923
"""Callback for locking a track"""
1924
- log .info ('actionLockTrack_trigger' )
1924
+ log .debug ('actionLockTrack_trigger' )
1925
1925
1926
1926
# Get details of track
1927
1927
track_id = self .selected_tracks [0 ]
@@ -2100,7 +2100,7 @@ def floatDocks(self, is_floating):
2100
2100
def showDocks (self , docks ):
2101
2101
""" Show all dockable widgets on the main screen """
2102
2102
for dock in docks :
2103
- if get_app (). window .dockWidgetArea (dock ) != Qt .NoDockWidgetArea :
2103
+ if self .dockWidgetArea (dock ) != Qt .NoDockWidgetArea :
2104
2104
# Only show correctly docked widgets
2105
2105
dock .show ()
2106
2106
@@ -2361,7 +2361,7 @@ def removeSelection(self, item_id, item_type):
2361
2361
2362
2362
if not self .selected_clips :
2363
2363
# Clear transform (if no other clips are selected)
2364
- get_app (). window .TransformSignal .emit ("" )
2364
+ self .TransformSignal .emit ("" )
2365
2365
2366
2366
# Move selection to next selected clip (if any)
2367
2367
self .show_property_id = ""
0 commit comments