Skip to content

Commit

Permalink
Minor usability improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Feb 15, 2022
1 parent 19d3116 commit 3525ab4
Show file tree
Hide file tree
Showing 10 changed files with 251 additions and 119 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Fixed a error when launching the app by opening a log on macOS through Finder.
Minor usability improvements:
* Added separate "Connect to Robot" and "Connect to Simulator" buttons in menu.
* Moved all default log tables to the end of the list in the side bar.
17 changes: 12 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const stateFileName = "state-" + app.getVersion().replaceAll(".", '_') + ".json"
const lastOpenFileName = "akit-log-path.txt"
var iconPath = null
const defaultPrefs = {
address: "10.63.28.2",
port: 5800,
address: "10.63.28.2",
rioPath: "/media/sda1/",
theme: process.platform == "linux" ? "light" : "system"
}
Expand Down Expand Up @@ -235,7 +235,7 @@ function setupMenu() {
label: "File",
submenu: [
{
label: "Open file...",
label: "Open...",
accelerator: "CmdOrCtrl+O",
click() {
var window = BrowserWindow.getFocusedWindow()
Expand All @@ -257,10 +257,17 @@ function setupMenu() {
}
},
{
label: "Connect to Server",
label: "Connect to Robot",
accelerator: "CmdOrCtrl+K",
click() {
BrowserWindow.getFocusedWindow().webContents.send("start-live")
BrowserWindow.getFocusedWindow().webContents.send("start-live", false)
}
},
{
label: "Connect to Simulator",
accelerator: "CmdOrCtrl+Shift+K",
click() {
BrowserWindow.getFocusedWindow().webContents.send("start-live", true)
}
},
{
Expand All @@ -271,7 +278,7 @@ function setupMenu() {
}
},
{
label: "Export as CSV...",
label: "Export CSV...",
accelerator: "CmdOrCtrl+E",
click() {
var window = BrowserWindow.getFocusedWindow()
Expand Down
Loading

0 comments on commit 3525ab4

Please sign in to comment.