fix fileexists problem

This commit is contained in:
Rob Watson 2009-01-18 01:42:45 +00:00
parent 5ad3725efe
commit ada7b34a3e
1 changed files with 10 additions and 1 deletions

View File

@ -10,8 +10,17 @@ TextMate {
*initClass {
var opt;
var settings;
var setpath = "%/.textmate-settings".format(Platform.userAppSupportDir);
var settings = Object.readArchive("%/.textmate-settings".format(Platform.userAppSupportDir));
if(File.exists(setpath)) {
settings = Object.readArchive(setpath);
} {
settings = (
classfiles: true,
references: true
)
};
try {
menu = CocoaMenuItem(nil, 7, "TextMate", true);