Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
183fbd28
Commit
183fbd28
authored
Jul 27, 2015
by
Zach
Browse files
Merge pull request #1305 from poixen/appname
Changed app title when logged in
parents
c0bb640a
46f28f92
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/window_main.cpp
View file @
183fbd28
...
@@ -440,7 +440,7 @@ void MainWindow::setClientStatusTitle()
...
@@ -440,7 +440,7 @@ void MainWindow::setClientStatusTitle()
case
StatusRegistering
:
setWindowTitle
(
appName
+
" - "
+
tr
(
"Registering to %1 as %2..."
).
arg
(
client
->
peerName
()).
arg
(
client
->
getUserName
()));
break
;
case
StatusRegistering
:
setWindowTitle
(
appName
+
" - "
+
tr
(
"Registering to %1 as %2..."
).
arg
(
client
->
peerName
()).
arg
(
client
->
getUserName
()));
break
;
case
StatusDisconnected
:
setWindowTitle
(
appName
+
" - "
+
tr
(
"Disconnected"
));
break
;
case
StatusDisconnected
:
setWindowTitle
(
appName
+
" - "
+
tr
(
"Disconnected"
));
break
;
case
StatusLoggingIn
:
setWindowTitle
(
appName
+
" - "
+
tr
(
"Connected, logging in at %1"
).
arg
(
client
->
peerName
()));
break
;
case
StatusLoggingIn
:
setWindowTitle
(
appName
+
" - "
+
tr
(
"Connected, logging in at %1"
).
arg
(
client
->
peerName
()));
break
;
case
StatusLoggedIn
:
setWindowTitle
(
appName
+
" - "
+
tr
(
"Logged in as %1 at %2"
).
arg
(
client
->
getUserName
()
).
arg
(
client
->
peerName
())
)
;
break
;
case
StatusLoggedIn
:
setWindowTitle
(
client
->
getUserName
()
+
"@"
+
client
->
peerName
());
break
;
default:
setWindowTitle
(
appName
);
default:
setWindowTitle
(
appName
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment