Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Fixed eyeNotes title when opening files directly
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-sh committed Nov 4, 2015
1 parent 52fb3ec commit 544bf58
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions system/apps/eyeNotes/app.eyecode
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ function eyeNotes_run($params=null) {
} else {
$lang = 'text';
}
if (!empty($params[0])) {
$windows_title = $params[0].' - ';
} else {
$windows_title = '';
}
$windows_title .= i18n('translate',array('Text Editor'));
$myWindow->setTitle(basename($windows_title));
$myTextArea = new Textarea(array('name'=>'noteContent','father'=>'eyeNotesWND_Content',
'width'=>$myWindow->width-8,'height'=>$myWindow->height-84,'x'=>2,'y'=>57,'code'=>1,'lang'=>$lang));
}
$myWindow->addFriend($myTextArea);
$myWindow->show();

if (!empty($params[0])) {
$windows_title = $params[0] . ' - ';
} else {
$windows_title = '';
}
$myWindow->setTitle(basename($windows_title . i18n('translate', array('Text Editor'))));

$myTextArea->show();
$myTextArea->focus();

Expand Down Expand Up @@ -121,4 +121,4 @@ function eyeNotes_end($params=null) {
}


?>
?>

0 comments on commit 544bf58

Please sign in to comment.