Fix bug where disconnecting using the 'power' button, resume acted strange
This commit is contained in:
parent
18e88735be
commit
6cc5fab302
2 changed files with 4 additions and 2 deletions
|
@ -47,8 +47,8 @@ bufferResume.service('bufferResume', ['settings', function(settings) {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Clear out the recorded info. Maybe we'll do this when the user chooses to disconnect?
|
// Clear out the recorded info. Maybe we'll do this when the user chooses to disconnect?
|
||||||
resumer.clear = function() {
|
resumer.reset = function() {
|
||||||
record(undefined);
|
hasResumed = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
return resumer;
|
return resumer;
|
||||||
|
|
|
@ -260,6 +260,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
$rootScope.$emit('notificationChanged');
|
$rootScope.$emit('notificationChanged');
|
||||||
$scope.connectbutton = 'Connect';
|
$scope.connectbutton = 'Connect';
|
||||||
$scope.connectbuttonicon = 'glyphicon-chevron-right';
|
$scope.connectbuttonicon = 'glyphicon-chevron-right';
|
||||||
|
bufferResume.reset();
|
||||||
});
|
});
|
||||||
$scope.connectbutton = 'Connect';
|
$scope.connectbutton = 'Connect';
|
||||||
$scope.connectbuttonicon = 'glyphicon-chevron-right';
|
$scope.connectbuttonicon = 'glyphicon-chevron-right';
|
||||||
|
@ -600,6 +601,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
$scope.disconnect = function() {
|
$scope.disconnect = function() {
|
||||||
$scope.connectbutton = 'Connect';
|
$scope.connectbutton = 'Connect';
|
||||||
$scope.connectbuttonicon = 'glyphicon-chevron-right';
|
$scope.connectbuttonicon = 'glyphicon-chevron-right';
|
||||||
|
bufferResume.reset();
|
||||||
connection.disconnect();
|
connection.disconnect();
|
||||||
};
|
};
|
||||||
$scope.reconnect = function() {
|
$scope.reconnect = function() {
|
||||||
|
|
Loading…
Reference in a new issue