Giter Site home page Giter Site logo

Comments (13)

jleclanche avatar jleclanche commented on August 23, 2024

To be fair, it's Date AND Time, not Date bitwise-and Time.

from lxqt-panel.

sirlark avatar sirlark commented on August 23, 2024

Haha. Fair point! Still the common usage in written English would be single ampersand

from lxqt-panel.

jleclanche avatar jleclanche commented on August 23, 2024

Are you running latest lxqt panel and qt5? Im not seeing this issue.

from lxqt-panel.

paulolieuthier avatar paulolieuthier commented on August 23, 2024

Yes, let's fix it.

snapshot13

How should it be?

from lxqt-panel.

paulolieuthier avatar paulolieuthier commented on August 23, 2024

That patch fixes it. Weird line, that one. What was the point?

diff --git a/panel/lxqtpanel.cpp b/panel/lxqtpanel.cpp
index 671697a..f3c3d55 100644
--- a/panel/lxqtpanel.cpp
+++ b/panel/lxqtpanel.cpp
@@ -869,7 +869,7 @@ void LxQtPanel::showPopupMenu(Plugin *plugin)

         if (m)
         {
-            menu.addTitle(plugin->windowTitle().replace("&", "&&"));
+            menu.addTitle(plugin->windowTitle());

             menu.addActions(m->actions());
             pluginsMenus << m;

from lxqt-panel.

jleclanche avatar jleclanche commented on August 23, 2024

@paulolieuthier It's possible the & character needs escaping. Make sure your patch works in both Qt4 and Qt5. I for one cannot reproduce the issue.

from lxqt-panel.

paulolieuthier avatar paulolieuthier commented on August 23, 2024

I will look further into that.

from lxqt-panel.

paulolieuthier avatar paulolieuthier commented on August 23, 2024

No problem in Qt4. It's just a string, right?

from lxqt-panel.

paulolieuthier avatar paulolieuthier commented on August 23, 2024

@sirlark could you please test the PR?

from lxqt-panel.

sirlark avatar sirlark commented on August 23, 2024

Sorry, PR? What is the PR?

from lxqt-panel.

paulolieuthier avatar paulolieuthier commented on August 23, 2024

Pull request: #88.

from lxqt-panel.

sirlark avatar sirlark commented on August 23, 2024

Right! Of course. Sure thing, I'll do it tonight, I'm at work at the moment.

from lxqt-panel.

paulolieuthier avatar paulolieuthier commented on August 23, 2024

Merged.

from lxqt-panel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.