Skip to content

Commit

Permalink
update language on open
Browse files Browse the repository at this point in the history
  • Loading branch information
j4cobgarby committed Jul 20, 2017
1 parent b163060 commit 7cd2a64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,15 @@ void Editor::handleInput(int c) {
openFile(getDialogInput("Open", {
"Type a file path"
}, 40));
set_current_lang();
break;
case 'O':
{
vector<string> fields = getOpenURLFields();
string wget = "wget -O "+fields.at(1)+" "+fields.at(0);
system(wget.c_str());
openFile(fields.at(1));
set_current_lang();
}
}
break;
Expand Down
4 changes: 2 additions & 2 deletions src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void curses_init()
// set colour of window - white bg
wbkgd(title_win, COLOR_PAIR(1));
// add a title
wprintw(title_win, "\teddy v0.9 beta");
wprintw(title_win, "\teddy v1.0");
// display title
wrefresh(title_win);

Expand All @@ -72,7 +72,7 @@ void curses_init()

// Splash dialog

showDialog("eddy v0.9-beta", {
showDialog("eddy v1.0", {
"Hello! Welcome to eddy v0.4b!",
"",
"Keep in mind it's in beta, so",
Expand Down

0 comments on commit 7cd2a64

Please sign in to comment.