File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,7 @@ def setup_page(self):
79
79
section = 'update_manager'
80
80
)
81
81
disable_zoom_mouse_cb = newcb (
82
- _ ("Disable zoom with mouse wheel" ),
83
- 'disable_zoom_mouse'
82
+ _ ("Disable zoom with Ctrl/Cmd + mouse wheel" ), "disable_zoom_mouse"
84
83
)
85
84
86
85
# Decide if it's possible to activate or not single instance mode
Original file line number Diff line number Diff line change @@ -1560,13 +1560,13 @@ def focusOutEvent(self, event):
1560
1560
return super ().focusOutEvent (event )
1561
1561
1562
1562
def eventFilter (self , obj , event ):
1563
- etype = event .type ()
1564
1563
if (
1565
- etype == QEvent .Wheel
1564
+ event . type () == QEvent .Wheel
1566
1565
and self ._control_key_down (event .modifiers ())
1567
1566
and self .get_conf ('disable_zoom_mouse' , section = 'main' )
1568
1567
):
1569
1568
return False
1569
+
1570
1570
return super ().eventFilter (obj , event )
1571
1571
1572
1572
# ---- Python methods
Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ def update_actions(self):
394
394
callers_or_callees_action .setChecked (False )
395
395
callers_or_callees_action .setEnabled (False )
396
396
397
- if widget is not None :
397
+ if not widget_inactive :
398
398
if widget .is_profiling :
399
399
self .start_spinner ()
400
400
else :
@@ -420,7 +420,8 @@ def update_actions(self):
420
420
# ProfilerWidgetActions.Home,
421
421
ProfilerWidgetActions .SlowLocal ,
422
422
ProfilerWidgetActions .SaveData ,
423
- ProfilerWidgetActions .Search
423
+ ProfilerWidgetActions .LoadData ,
424
+ ProfilerWidgetActions .Search ,
424
425
]:
425
426
action = self .get_action (action_name )
426
427
if action_name in [
@@ -430,6 +431,8 @@ def update_actions(self):
430
431
action .setEnabled (
431
432
not tree_empty and not callers_or_callees_enabled
432
433
)
434
+ elif action_name == ProfilerWidgetActions .LoadData :
435
+ action .setEnabled (not widget_inactive )
433
436
else :
434
437
action .setEnabled (not tree_empty )
435
438
Original file line number Diff line number Diff line change 11
11
# Standard library imports
12
12
import os
13
13
import os .path as osp
14
- import sys
15
14
16
15
# Test library imports
17
16
from spyder .utils import programs
31
30
32
31
33
32
@skipnogit
34
- @pytest .mark .skipif (running_in_ci (), reason = "Not to be run outside of CIs" )
33
+ @pytest .mark .skipif (not running_in_ci (), reason = "Not to be run outside of CIs" )
35
34
def test_vcs_tool ():
36
35
if not os .name == 'nt' :
37
36
with pytest .raises (ActionToolNotFound ):
You can’t perform that action at this time.
0 commit comments