@@ -32,7 +32,6 @@ class Appmode(LoggingConfigurable):
32
32
show_edit_button = Bool (True , help = "Show Edit App button during Appmode." , config = True )
33
33
show_other_buttons = Bool (True , help = "Show other buttons, e.g. Logout, during Appmode." , config = True )
34
34
temp_dir = Unicode ('' , help = "Create temporary Appmode notebooks in this directory." , config = True )
35
- hidden_temp_files = Bool (True , help = "Temporary Appmode notebooks are hidden files." , config = True )
36
35
37
36
#===============================================================================
38
37
class AppmodeHandler (IPythonHandler ):
@@ -52,10 +51,6 @@ def show_other_buttons(self):
52
51
def temp_dir (self ):
53
52
return self .settings ['appmode' ].temp_dir
54
53
55
- @property
56
- def hidden_temp_files (self ):
57
- return self .settings ['appmode' ].hidden_temp_files
58
-
59
54
#===========================================================================
60
55
@web .authenticated
61
56
async def get (self , path ):
@@ -134,7 +129,7 @@ async def mk_tmp_copy(self, path):
134
129
os .makedirs (dirname )
135
130
fullbasename = os .path .basename (path )
136
131
basename , ext = os .path .splitext (fullbasename )
137
- if self . hidden_temp_files :
132
+ if cm . allow_hidden :
138
133
basename = '.' + basename
139
134
for i in itertools .count ():
140
135
tmp_path = "%s/%s-%i%s" % (dirname , basename , i , ext )
0 commit comments