Permalink
Browse files

reset overlay position

  • Loading branch information...
Manuel-777 committed Jan 23, 2019
1 parent 1adc0db commit cfea68bd42eebf82ba48d99bad87a82d6b93b028
Showing with 10 additions and 0 deletions.
  1. +4 −0 main.js
  2. +6 −0 window_main/renderer.js
@@ -206,6 +206,10 @@ app.on('ready', () => {
clipboard.writeText(arg);
break;

case 'reset_overlay_pos':
overlay.setPosition(0, 0);
break;

case 'export_txt':
dialog.showSaveDialog({
filters: [{
@@ -1912,6 +1912,8 @@ function open_settings(openSection) {
var sliderScaleInput = $('<input type="range" min="10" max="200" step="10" value="'+overlayScale+'" class="slider sliderD" id="scaleRange">');
sliderScaleInput.appendTo(sliderScale);

$('<div class="button_simple centered resetOverlayPos" onclick="resetOverlay(this)">Reset Position</div>').appendTo(section);

//
section = $('<div class="settings_section ss3"></div>');
section.appendTo(div);
@@ -2032,6 +2034,10 @@ function open_settings(openSection) {
$(".ss"+openSection).show();
$(".sn"+openSection).addClass("nav_selected");

$(".resetOverlayPos").click(function() {
ipc_send('reset_overlay_pos', true);
});

$(".top_logo_about").click(function() {
shell.openExternal('https://mtgatool.com');
});

0 comments on commit cfea68b

Please sign in to comment.