Commit Graph

5221 Commits

Author SHA1 Message Date
aee7484a0c Fix of #5163 and #5505 - Vertical cutting of the preset comboboxes on a sidebar 2021-01-12 14:54:58 +01:00
6bdbe0ffb4 Replaced __linux macro with __linux__ 2021-01-11 13:31:30 +01:00
42779c6fac Fix of #5720 - SL1 Printer Settings->Notes is not updated when switching tab 2021-01-11 13:11:35 +01:00
1f1cfe4339 Finally fixing the single instance for AppImage 2021-01-11 11:41:22 +01:00
5e90db3454 Fix of previous commit 2021-01-11 11:29:27 +01:00
b25e914703 Fixed "Single instance" locking issue on Linux with AppImage,
where the PrusaSlicer binary is mounted at a different mount point
at each AppImage execution.
Fixes Lock files in the local configuration directory are not deleted (#5733)
2021-01-11 11:14:59 +01:00
442513114b Fixed build regression in commit a5882a1a1c on some Linux platforms. We need to link with GTK libs after all. 2021-01-10 22:39:59 -08:00
db820aa8f5 Increase tolerance for objects being outside print bed. 2021-01-08 10:14:24 +01:00
8c608ebf5e Removed obsolete method declaration in GLCanvas3D 2021-01-08 08:47:33 +01:00
2c50767009 On OSX, we use boost::process::spawn() to launch new instances of PrusaSlicer from another PrusaSlicer.
boost::process::spawn() sets SIGCHLD to SIGIGN for the child process, thus if a child PrusaSlicer spawns another
subprocess and the subrocess dies, the child PrusaSlicer will not receive information on end of subprocess
(posix waitpid() call will always fail).
https://jmmv.dev/2008/10/boostprocess-and-sigchld.html
The child instance of PrusaSlicer has to reset SIGCHLD to its default, so that posix waitpid() and similar continue to work.
Fixes #5507
2021-01-07 19:14:48 +01:00
b31f22e401 boost::process::spawn() sets SIGINT to SIGIGN, which collides with boost::process waiting for a child to finish!
https://jmmv.dev/2008/10/boostprocess-and-sigchld.html
Thus reset the SIGINT to its default, so that posix waitpid() and similar continue to work.
Fixes Crash on Eject in Second Instance on macOS #5507
2021-01-07 17:38:56 +01:00
fc86ae66bd Fix of Ejecting of device has failed on Ubuntu Linux #3975
Eject failed due to superfluous escaping of spaces in path to the SD card
mount point.
2021-01-07 14:17:09 +01:00
a563920108 Merge remote-tracking branch 'remotes/origin/master' into vb_osx_eject 2021-01-07 14:12:40 +01:00
865bbb906e Merge remote-tracking branch 'remotes/origin/dk_refresh' into vb_osx_eject 2021-01-07 14:00:21 +01:00
8cbe773711 Fix for incorrect text fitting on gtk comboboxes.
fixes #4584
2021-01-07 13:38:29 +01:00
5cea1876ce request frame with delay when new notification pushed 2021-01-07 13:33:05 +01:00
028df63d82 success with text ellipsize for combobox 2021-01-07 13:24:26 +01:00
02486a0fd9 update notification before erasing finished ones 2021-01-07 13:16:23 +01:00
0904346dbc Fixed compilation on OSX 2021-01-07 13:13:35 +01:00
4275190c11 wxWakeUpIdle when render timer ends to ensure idle function spawns and triggers rendering 2021-01-07 12:54:53 +01:00
8c8e2b6ddd Fix of #5698 - When editing presets, list items are always green even if values have changed compared to preset or defaults 2021-01-07 12:26:16 +01:00
b2b3ec61cf Fix of previous commit for OSX 2021-01-07 12:19:41 +01:00
627609bbc5 Fix of previopus commut 2021-01-07 12:09:47 +01:00
d4036067dc Fixing the SD card eject issue on OSX by pushing the call to
"diskutil eject" to a worker thread.
Hopefully fixes Ejecting an SD card is slow and locks UI #4844
2021-01-07 12:02:44 +01:00
6efe7e7777 Fix of #5568 - Unselecting more than 10 copies stops at copy 10
But really bug was: incorrectly interrupted DnD.
2021-01-07 09:56:43 +01:00
d1ee2487b7 Fix of slow update when dragging the vertical slider in G-code viewer
with volumetric flow color mapping enabled.
Fixes "Volumetric flow rate computes very slowly #5572"
2021-01-06 15:32:31 +01:00
ec99345ff6 Fix of #4532 - "Send G-Code to printer host" dialog box blanks out text on Linux 2021-01-06 12:24:00 +01:00
dda9c09747 Fix of #5584 - Information text on startup logo 2021-01-05 14:26:10 +01:00
05f6215f54 Fix of G-code Viewer not loading .gco files #5536
".gcode", ".gco", ".g" and ".ngc" were considered to be G-code file
extensions by the G-code import / export file dialogs, but not by
various other functions. Now the G-code extension is tested by
a single function is_gcode_file(string).
2021-01-05 12:26:11 +01:00
1939295492 #5690 - Fixed thumbnail generation when a gizmo is active 2021-01-05 11:58:48 +01:00
b6fff21c0d Fix for "bed fill" discarding selected instance transformation.
fixes #5621
2021-01-04 20:33:17 +01:00
7ec76917f0 Fix of #5672 - Dubious grammar when closing Physical Printer dialog 2021-01-04 19:03:34 +01:00
5cab1cff73 Fix of second part of #5531
From the Win 2004 preset combobox lose a focus after change the preset selection and that is why the up/down arrow doesn't work properly.
So, set the focus to the combobox explicitly.
2021-01-04 16:51:29 +01:00
fb7778b84c Changed wording in one log message 2021-01-04 14:21:24 +01:00
8a36916256 Use monospace font in placeholder parser error messages (Linux fix)
Previous implementation did not use monospace font on Linux. According to a note
from @wavexx in ba7f39a: "wxSYS_ANSI_FIXED_FONT use the same as DEFAULT in wxGtk".
This commit uses the same workaround by actually loading the font from GUI_App.
2021-01-04 14:21:24 +01:00
45a24ce9db Fix of #5606 (Force invalidation when object settings are deleted) 2021-01-04 14:21:24 +01:00
d5129e80a4 localization: Fixed one phrase 2020-12-22 17:24:29 +01:00
64aed7df69 Fixed a checking of the description lines existence before setting new value for them 2020-12-22 16:23:53 +01:00
17e310c09e Fix of #5537 - GUI_App::post_init could be in some cases called before GUI_App::init_openg when GCode viewer is used.
The solution adds a status flag to GUI_App::init_openg and ensures that GUI_App::post_init isn't called before initialization in GUI_App::init_openg is done.
2020-12-22 12:28:00 +01:00
3d7b67f6be Added error-checking for child.wait() call during removable drive ejection (to prevent #5507)
Mark Ejection as failed if the wait() function fails. It seems that it is not simply possible
to retrieve the exit code of the process in that case (although it usually finishes sucessfully).
2020-12-22 12:18:30 +01:00
a17aef681d Fixed a crash on copy/paste, when ObjectList has no selection. Related to #5517 2020-12-22 10:42:47 +01:00
497f244c9e Follow-up to 9d34d350a5: Missed one more translation for category, when checking selection on the left panel
+ Fixed a typo in CS and ES dictionaries
2020-12-21 14:28:50 +01:00
2788ecd628 Fixed ASCII folding for non-foldable non-ASCII characters
Problem: Add an object, name it using cyrilic, Slice, click Export: the proposed name is mangled. Affects all platforms, 2.2.0 was fine.

Cause: It is mangled during ASCII folding, which was broken with 28c0880 when it was generalized to be used from the fuzzy matcher.
    fold_to_ascii(wchar_t c, char *out) relies on narrowing char = wchar_t assignment, the old one used std::back_insert_iterator<std::wstring>.
    It is thus unable to leave a character alone even when it should (it should, right?).

Solution:
    1. Typed the fold_to_ascii function so it works on wchar_t only, which should mimic the old behaviour.
    2. Changed the respective call in fts_fuzzy_match.h. That function also works with wide char C-strings.

Cleanup:
    1. Removed the unused fold_utf8_to_ascii(const char *src) overload to avoid code duplication.
    2. Untemplated the fold_to_ascii(wchar_t c, std::back_insert_iterator<std::wstring>& out) function, it was never called with a different type.
    3. The function is now static in ASCIIFolding.cpp, nobody else needs to know.
2020-12-21 10:31:37 +01:00
62fa912a6d Fix of a crash on startup when creating physical printer profiles from 2.2 configs (#5513, #5074)
The issue is that opening the wxMessageDialog in GUI_App::check_printer_presets  fires wxEVT_IDLE event (on Linux at least).
At that point it is already bound to our lambda which will in turn call post_init prematurely.
The solution is to move the Bind at the very end of the initialization. The post_init that it calls assumes that init has been finished anyway.
2020-12-21 10:27:35 +01:00
302301132e Missing init() call at notification render 2020-12-19 09:22:40 +01:00
5d698b377a Keyboard shortcut at notification hover - eject sd 2020-12-18 15:48:59 +01:00
059f22cc7b Fixed encoding issue in ConfigWizard on Windows (#5422) 2020-12-18 15:35:30 +01:00
f4d50c2671 Added a missing translation macro 2020-12-18 13:28:24 +01:00
dcfb01cd1a Decrease min height for ObjectList (related to #5462) 2020-12-18 11:31:14 +01:00
87de71a089 Follow-up to 19b52da260: Fixed scale for view toolbar on HDPI (GTK3 specific) 2020-12-18 11:27:28 +01:00