FreeCAD / FreeCAD

This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.
https://www.freecad.org
Other
21.35k stars 4.15k forks source link

Sketcher: Some constraints have disruptive popups (Notification BUG) #16767

Open leoheck opened 2 months ago

leoheck commented 2 months ago

Is there an existing issue for this?

Problem description

These kind of popups break the hole flow of design. Please, avoid using popups that need with human interaction for things we dont have any opption to choose. image

Full version info

OS: Ubuntu 24.04.1 LTS (ubuntu:GNOME/ubuntu-xorg)
Word size of FreeCAD: 64-bit
Version: 1.1.0dev.38794 (Git) AppImage
Build type: Release
Branch: main
Hash: a47800d9ccd7d7a7cdb1779d56de03d3c64cd76e
Python 3.11.9, Qt 5.15.13, Coin 4.0.3, Vtk 9.2.6, OCC 7.7.2
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: OpenDark.qss/OpenDark/Qt default
Installed mods: 
  * Assembly4 0.50.16-dev
  * sheetmetal 0.4.26
  * InventorLoader 1.4.0
  * ose-piping
  * OpenTheme 2024.9.1
  * fasteners 0.5.29
  * osh-autodoc-workbench 0.2.3
  * OpticsWorkbench 1.0.24
  * lattice2 1.0.0
  * kicadStepUpMod 11.3.8

Subproject(s) affected?

None

Anything else?

No response

Code of Conduct

maxwxyz commented 2 months ago

should be a warning instead IMO

Roy-043 commented 2 months ago

There already is a preference for this: "Enable non-intrusive notifications" needs to be checked (which is also the default).

https://wiki.freecad.org/Preferences_Editor#Notification_Area

leoheck commented 2 months ago

So this is a bug. I dont have notifications enabled.

This silly popup should be removed. It should log to the Report View at most.

image

leoheck commented 2 months ago

Right now it looks like I have to "enable notifications" to "disable" them.

leoheck commented 2 months ago

Can you please reopen this ticket? The problem still persists.

Roy-043 commented 2 months ago

You need to check the two checkboxes at the top of your screenshot.

leoheck commented 2 months ago

How this logic works? I don't want notification. So I have to enable notifications? That doesn't make any sense.

luzpaz commented 2 months ago

It is kind of awkward.

Roy-043 commented 2 months ago

Try unchecking the first checkbox (leaving the 2nd checkbox checked).

leoheck commented 2 months ago

I see what you are saying @Roy-043 but enabling something to disable it, does not make any sense. No matter if you are an common end user or the smartest developer.

Roy-043 commented 2 months ago

I suppose the text can be clearer. As far as I understand, by enabling "non-intrusive notifications" you avoid "intrusive notifications". I do not know if there is a way to avoid all notifications. But that would probably be a bad idea anyway.

leoheck commented 2 months ago

Messages on report view are non intrusive.

leoheck commented 2 months ago

I suppose the text can be clearer. As far as I understand, by enabling "non-intrusive notifications" you avoid "intrusive

I am using it like this ... (I dont wan to do it, but it was recomended here) image

Still receiving things like this which is still a very intrusive thing. image

Why things like this have to explode on users face?

Roy-043 commented 2 months ago

Try unchecking the first checkbox (leaving the 2nd checkbox checked).

Have you tried this?

leoheck commented 2 months ago

@Roy-043 , like on this message here https://github.com/FreeCAD/FreeCAD/issues/16767#issuecomment-2371183624? It was like that when I opened the issue.

Roy-043 commented 2 months ago

Check both checkboxes, and then uncheck the first.

leoheck commented 2 months ago

This, right? image

leoheck commented 2 months ago

@maxwxyz time to open this again, see the picture above.

Roy-043 commented 2 months ago

Are you restarting FreeCAD after changing the preferences?

Here is an overview of all possible combinations of the mentioned checkboxes:

Test scenario:
Restart after every change to the preferences.
Apply a horizontal constraint to a sketch line that aready has such a constraint.

0=unchecked
1=checked

Enable Notification Area           0
Enable non-intrusive notifications 0
=> 2 warning popups.

Enable Notification Area           1
Enable non-intrusive notifications 0
=> 2 warning popups. Nothing in the notification area.

Enable Notification Area           0
Enable non-intrusive notifications 1
=> 2 messages only appear in the status bar (only the last can be read).

Enable Notification Area           1
Enable non-intrusive notifications 1
=> 2 messages appear in the status bar (only the last can be read). And also in the notification area.
OS: Windows 8 build 9600
Word size of FreeCAD: 64-bit
Version: 1.1.0dev.38843 (Git)
Build type: Release
Branch: main
Hash: d519f24df9931e4a98d19ee39cdcd6124ae6a7bd
Python 3.11.9, Qt 5.15.13, Coin 4.0.3, Vtk 9.2.6, OCC 7.7.2
Locale: Dutch/Netherlands (nl_NL)
Stylesheet/Theme/QtStyle: unset/FreeCAD Classic/Qt default
Installed mods:
Roy-043 commented 2 months ago

There are some minor issues here: