fix fileexists problem
This commit is contained in:
parent
5ad3725efe
commit
ada7b34a3e
|
@ -10,8 +10,17 @@ TextMate {
|
||||||
|
|
||||||
*initClass {
|
*initClass {
|
||||||
var opt;
|
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 {
|
try {
|
||||||
menu = CocoaMenuItem(nil, 7, "TextMate", true);
|
menu = CocoaMenuItem(nil, 7, "TextMate", true);
|
||||||
|
|
Loading…
Reference in New Issue