Merge pull request #814 from JakeStevenson/bug/resume-when-power-off
Fix bug where disconnecting using the 'power' button, resume acted strange
This commit is contained in:
commit
a20a9b7dfb
|
@ -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?
|
||||
resumer.clear = function() {
|
||||
record(undefined);
|
||||
resumer.reset = function() {
|
||||
hasResumed = false;
|
||||
};
|
||||
|
||||
return resumer;
|
||||
|
|
|
@ -260,6 +260,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
|||
$rootScope.$emit('notificationChanged');
|
||||
$scope.connectbutton = 'Connect';
|
||||
$scope.connectbuttonicon = 'glyphicon-chevron-right';
|
||||
bufferResume.reset();
|
||||
});
|
||||
$scope.connectbutton = 'Connect';
|
||||
$scope.connectbuttonicon = 'glyphicon-chevron-right';
|
||||
|
@ -600,6 +601,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
|||
$scope.disconnect = function() {
|
||||
$scope.connectbutton = 'Connect';
|
||||
$scope.connectbuttonicon = 'glyphicon-chevron-right';
|
||||
bufferResume.reset();
|
||||
connection.disconnect();
|
||||
};
|
||||
$scope.reconnect = function() {
|
||||
|
|
Loading…
Reference in New Issue