mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-31 17:57:10 +00:00
[host] Windows: change "Open Log File" to "Log File Location"
This commit is contained in:
parent
ca4b1f5592
commit
ca02e1aba9
1 changed files with 5 additions and 5 deletions
|
@ -32,7 +32,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#include "common/locking.h"
|
#include "common/locking.h"
|
||||||
#include "common/thread.h"
|
#include "common/thread.h"
|
||||||
|
|
||||||
#define ID_MENU_OPEN_LOG 3000
|
#define ID_MENU_SHOW_LOG 3000
|
||||||
#define ID_MENU_EXIT 3001
|
#define ID_MENU_EXIT 3001
|
||||||
|
|
||||||
struct AppState
|
struct AppState
|
||||||
|
@ -113,7 +113,7 @@ LRESULT CALLBACK DummyWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (clicked == ID_MENU_EXIT ) app_quit();
|
if (clicked == ID_MENU_EXIT ) app_quit();
|
||||||
else if (clicked == ID_MENU_OPEN_LOG)
|
else if (clicked == ID_MENU_SHOW_LOG)
|
||||||
{
|
{
|
||||||
const char * logFile = option_get_string("os", "logFile");
|
const char * logFile = option_get_string("os", "logFile");
|
||||||
if (strcmp(logFile, "stderr") == 0)
|
if (strcmp(logFile, "stderr") == 0)
|
||||||
|
@ -258,9 +258,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||||
MessageHWND = app.messageWnd;
|
MessageHWND = app.messageWnd;
|
||||||
|
|
||||||
app.trayMenu = CreatePopupMenu();
|
app.trayMenu = CreatePopupMenu();
|
||||||
AppendMenu(app.trayMenu, MF_STRING , ID_MENU_OPEN_LOG, "Open Log File");
|
AppendMenu(app.trayMenu, MF_STRING , ID_MENU_SHOW_LOG, "Log File Location");
|
||||||
AppendMenu(app.trayMenu, MF_SEPARATOR, 0 , NULL );
|
AppendMenu(app.trayMenu, MF_SEPARATOR, 0 , NULL );
|
||||||
AppendMenu(app.trayMenu, MF_STRING , ID_MENU_EXIT , "Exit" );
|
AppendMenu(app.trayMenu, MF_STRING , ID_MENU_EXIT , "Exit" );
|
||||||
|
|
||||||
// create the application thread
|
// create the application thread
|
||||||
LGThread * thread;
|
LGThread * thread;
|
||||||
|
|
Loading…
Reference in a new issue