Ask / Submit
30

"Go offline" instead of "Go away" in events view pulley menu

asked 2014-01-05 15:57:19 +0200

thisisme gravatar image

updated 2015-01-12 17:37:46 +0200

It would be more useful for me to be able to use pulley menu option in events view to go directly offine from controlled services (Facebook, Gtalk, XMPP etc.) instead of setting my status as "Away" as it is right now. Currently I have to select "Show presence details" and go offline from there. Of course it would be best if that setting was somehow configurable (Go busy / away / offline)!

edit retag flag offensive close delete

Comments

4

Personally I'd rather have both (or all) options in the pulley-menu (and yes, it would be perfect if it was somehow easily customizable)... ;)

In general, I'm a big fan of options... Make it YOURS... #unlike :)

DrWilken ( 2014-01-05 17:36:05 +0200 )edit

All options are welcome in my opinion too.

huuhaa ( 2014-01-06 01:09:09 +0200 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2014-01-10 12:48:32 +0200

chemist gravatar image

A bottom bar to change presence and reorganizing the pulley to [update - show presence details - clear notifications]

edit flag offensive delete publish link more
2

answered 2014-12-26 18:28:25 +0200

thisisme gravatar image

updated 2014-12-26 18:31:21 +0200

Answering my own question after almost a year :)

I managed to make some changes in file /usr/share/lipstick-jolla-home-qt5/eventsview/EventsViewList.qml that work better for me... So now, the first option in the pulley menu is always enabled and reads either "Go online" or "Go offline".. Here's what it looks like: image description

image description

And the actual code changes:

--- EventsViewList.qml.old  2014-12-25 19:29:17.464452382 +0200
+++ EventsViewList.qml  2014-12-26 09:45:06.522830039 +0200
@@ -111,28 +111,24 @@
             property int presenceState: self ? self.globalPresenceState : Person.PresenceUnknown
             property bool offline: (presenceState === Person.PresenceUnknown) || (presenceState === Person.PresenceHidden) || (presenceState === Person.PresenceOffline)

-            enabled: !offline

             text: {
                 if (offline) {
-                    //: Presence cannot be modified
-                    //% "Presence unavailable"
-                    return qsTrId("lipstick-jolla-home-me-presence_unavailable")
-                } else if (presenceState === Person.PresenceAvailable) {
-                    //: Set all presence states to 'away'
-                    //% "Set Away"
-                    return qsTrId("lipstick-jolla-home-me-set_away")
+                    //: Set all presence states to 'available'
+                    //% "Presence available"
+                    return qsTrId("lipstick-jolla-home-me-set_available")
+                } else {
+                    //: Set all presence states to 'offline'
+                    //% "Set Offline"
+                    return qsTrId("Go offline")
                 }

-                //: Set all presence states to 'available'
-                //% "Set Available"
-                return qsTrId("lipstick-jolla-home-me-set_available")
             }

             ContactPresenceUpdate {
                 id: updater
             }
-            onClicked: updater.setGlobalPresence(presenceState === Person.PresenceAvailable ? Person.PresenceAway : Person.PresenceAvailable)
+            onClicked: updater.setGlobalPresence(presenceState === Person.PresenceOffline ? Person.PresenceAvailable : Person.PresenceOffline)

             ContactPresenceIndicator {
                 anchors {

If you want to try it, please make a backup of the original file before messing with it. Also, you do this at your own risk!

P.S. I suspect that the "Go offline" string may not be displayed correctly in languages other than English.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2014-01-05 15:57:19 +0200

Seen: 427 times

Last updated: Dec 26 '14