File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1160,7 +1160,10 @@ class Source(Dashboard.Module):
1160
1160
self .offset = 0
1161
1161
1162
1162
def label (self ):
1163
- return 'Source' + (': ' + self .file_name if self .file_name else '' )
1163
+ label = 'Source'
1164
+ if self .show_path and self .file_name :
1165
+ label += ': {}' .format (self .file_name )
1166
+ return label
1164
1167
1165
1168
def lines (self , term_width , term_height , style_changed ):
1166
1169
# skip if the current thread is not stopped
@@ -1287,6 +1290,12 @@ A value of 0 uses the whole height.''',
1287
1290
'type' : int ,
1288
1291
'check' : check_gt_zero
1289
1292
},
1293
+ 'path' : {
1294
+ 'doc' : 'Path visibility flag in the module label.' ,
1295
+ 'default' : False ,
1296
+ 'name' : 'show_path' ,
1297
+ 'type' : bool
1298
+ },
1290
1299
'highlight-line' : {
1291
1300
'doc' : 'Decide whether the whole current line should be highlighted.' ,
1292
1301
'default' : False ,
You can’t perform that action at this time.
0 commit comments